Partager via


paires : : first_type (STL/CLR)

The type of the first wrapped value.

    typedef Value1 first_type;

Notes

The type is a synonym for the template parameter Value1.

Exemple

// cliext_pair_first_type.cpp 
// compile with: /clr 
#include <cliext/utility> 
 
int main() 
    { 
    cliext::pair<wchar_t, int> c1(L'x', 3); 
    System::Console::WriteLine("[{0}, {1}]", c1.first, c1.second); 
 
    cliext::pair<wchar_t, int>::first_type first_val = c1.first; 
    cliext::pair<wchar_t, int>::second_type second_val = c1.second; 
    System::Console::WriteLine("[{0}, {1}]", first_val, second_val); 
    return (0); 
    } 
 
  

Configuration requise

Header: <cliext/utility>

Namespace: cliext

Voir aussi

Référence

paires (STL/CLR)

paires : : en premier (STL/CLR)

paires : : en second lieu (STL/CLR)

paires : : second_type (STL/CLR)