pair::second_type (STL/CLR)
第二個包裝值的型別。
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/utility>
命名空間: cliext