pair::second_type (STL/CLR)

2 番目のラップされた値の型。

    typedef Value2 second_type;

解説

この型は、テンプレート パラメーター Value2 のシノニムです。

使用例

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

必要条件

ヘッダー: <cliext とユーティリティ>

名前空間: の cliext

参照

関連項目

pair (STL/CLR)

pair::first (STL/CLR)

pair::first_type (STL/CLR)

pair::second (STL/CLR)