Share via


multiset::make_value (STL/CLR)

Constructs a value object.

    static value_type make_value(key_type key);

Parameters

  • key
    Key value to use.

Remarks

The member function returns a value_type object whose key is key. You use it to compose an object suitable for use with several other member functions.

Example

// cliext_multiset_make_value.cpp 
// compile with: /clr 
#include <cliext/set> 
 
typedef cliext::multiset<wchar_t> Mymultiset; 
int main() 
    { 
    Mymultiset c1; 
    c1.insert(Mymultiset::make_value(L'a')); 
    c1.insert(Mymultiset::make_value(L'b')); 
    c1.insert(Mymultiset::make_value(L'c')); 
 
// display contents " a b c" 
    for each (Mymultiset::value_type elem in c1) 
        System::Console::Write(" {0}", elem); 
    System::Console::WriteLine(); 
    return (0); 
    } 
 
 a b c

Requirements

Header: <cliext/set>

Namespace: cliext

See Also

Reference

multiset (STL/CLR)

multiset::key_type (STL/CLR)

multiset::value_type (STL/CLR)