multiset::value_comp (STL/CLR)

Copies the ordering delegate for two element values.

    value_compare^ value_comp();

Remarks

The member function returns the ordering delegate used to order the controlled sequence. You use it to compare two element values.

Example

// cliext_multiset_value_comp.cpp 
// compile with: /clr 
#include <cliext/set> 
 
typedef cliext::multiset<wchar_t> Mymultiset; 
int main() 
    { 
    Mymultiset c1; 
    Mymultiset::value_compare^ kcomp = c1.value_comp(); 
 
    System::Console::WriteLine("compare(L'a', L'a') = {0}", 
        kcomp(L'a', L'a')); 
    System::Console::WriteLine("compare(L'a', L'b') = {0}", 
        kcomp(L'a', L'b')); 
    System::Console::WriteLine("compare(L'b', L'a') = {0}", 
        kcomp(L'b', L'a')); 
    System::Console::WriteLine(); 
    return (0); 
    } 
 
compare(L'a', L'a') = False
compare(L'a', L'b') = True
compare(L'b', L'a') = False

Requirements

Header: <cliext/set>

Namespace: cliext

See Also

Concepts

multiset (STL/CLR)

multiset::value_compare (STL/CLR)

multiset::value_type (STL/CLR)