hash_set::make_value (STL/CLR)
Konstrukcje obiektu wartości.
static value_type make_value(key_type key);
Parametry
- klucz
Wartość klucza korzystać.
Uwagi
Zwraca element członkowski funkcja value_type obiektu, której klucz jest key.Użyj go do redagowania obiekt nadaje się do użytku z kilku innych funkcji elementów członkowskich.
Przykład
// cliext_hash_set_make_value.cpp
// compile with: /clr
#include <cliext/hash_set>
typedef cliext::hash_set<wchar_t> Myhash_set;
int main()
{
Myhash_set c1;
c1.insert(Myhash_set::make_value(L'a'));
c1.insert(Myhash_set::make_value(L'b'));
c1.insert(Myhash_set::make_value(L'c'));
// display contents " a b c"
for each (Myhash_set::value_type elem in c1)
System::Console::Write(" {0}", elem);
System::Console::WriteLine();
return (0);
}
Wymagania
Nagłówek:<cliext/hash_set>
Przestrzeń nazw: cliext