hash_set::make_value (STL/CLR)

Construye un objeto value.

    static value_type make_value(key_type key);

Parámetros

  • clave
    Valor de clave a utilizar.

Comentarios

La función miembro devuelve un objeto de value_type cuya clave se key.Se utiliza para crear un objeto adecuado para el uso con otras funciones miembro.

Ejemplo

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

Requisitos

encabezado: <cliext/hash_set>

Cliext deespacio de nombres:

Vea también

Referencia

hash_set (STL/CLR)

hash_set::key_type (STL/CLR)

hash_set::value_type (STL/CLR)