hash_set::make_value (STL/CLR)

Costruisce un oggetto di valore.

    static value_type make_value(key_type key);

Parametri

  • chiave
    Valore della chiave da utilizzare.

Note

La funzione membro restituisce un oggetto di value_type di cui la chiave viene key.Utilizzarla per comporre un oggetto appropriato da utilizzare con diverse altre funzioni membro.

Esempio

// 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); 
    } 
 
  

Requisiti

intestazione: <cliext/hash_set>

Cliext diSpazio dei nomi:

Vedere anche

Riferimenti

hash_set (STL/CLR)

hash_set::key_type (STL/CLR)

hash_set::value_type (STL/CLR)