Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The latest version of this topic can be found at pair::first (STL/CLR).
The first wrapped value.
Syntax
Value1 first;
Remarks
The object stores the first wrapped value.
Example
// cliext_pair_first.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_type (STL/CLR)
pair::second (STL/CLR)
pair::second_type (STL/CLR)