Compartilhar via


pair::second_type (STL/CLR)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at pair::second_type (STL/CLR).

The type of the second wrapped value.

Syntax

typedef Value2 second_type;  

Remarks

The type is a synonym for the template parameter Value2.

Example

// cliext_pair_second_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);   
    }  
  
[x, 3]  

Requirements

Header: <cliext/utility>

Namespace: cliext

See Also

pair (STL/CLR)
pair::first (STL/CLR)
pair::first_type (STL/CLR)
pair::second (STL/CLR)