Article ID: 158573 - Last Review: July 15, 2005 - Revision: 4.1 How to use the set::key_comp and set::value_comp Standard Template Library (STL) functions in Visual C++This article was previously published under Q158573 Note Microsoft Visual C++ NET (2002) supported both the managed code
model that is provided by the .NET Framework and the unmanaged native Windows
code model. The information in this article applies to unmanaged Visual C++
code only. On This PageSUMMARY The following sample code illustrates how to use the
set::key_comp and set::value_comp STL functions in Visual C++. MORE INFORMATIONRequired headerPrototypeDescriptionThe key_comp function returns the stored function object that determines the order of elements in the controlled sequence. The value_comp function returns the same function that key_comp returns.Sample codeProgram outputREFERENCESFor the same topic about set::(key_, value_)comp, visit the
following MSDN Web site:
http://msdn.microsoft.com/en-us/library/w9bd5c6s(VS.71).aspx
(http://msdn.microsoft.com/en-us/library/w9bd5c6s(VS.71).aspx)
APPLIES TO
| Article Translations
|
Back to the top
