class template
<utility>

std::pair

template <class T1, class T2> struct pair;
Pair of values
This class couples together a pair of values, which may be of different types (T1 and T2). The individual values can be accessed through its public members first and second.

Pairs are a particular case of tuple.

Template parameters

T1
Type of member first, aliased as first_type.
T2
Type of member second, aliased as second_type.

Member types

member typedefinitionnotes
first_typeThe first template parameter (T1)Type of member first.
second_typeThe second template parameter (T2)Type of member second.

Member variables

member variabledefinition
firstThe first value in the pair
secondThe second value in the pair

Member functions


Non-member function overloads


Non-member class specializations


See also

                              1. 7297372428 2018-04-20
                              2. 4929522427 2018-04-20
                              3. 1938132426 2018-04-20
                              4. 2267862425 2018-04-20
                              5. 6177082424 2018-04-20
                              6. 838232423 2018-04-20
                              7. 4694502422 2018-04-20
                              8. 6512882421 2018-04-19
                              9. 4659652420 2018-04-19
                              10. 2967832419 2018-04-19
                              11. 8339042418 2018-04-19
                              12. 8147112417 2018-04-19
                              13. 2774752416 2018-04-19
                              14. 4316132415 2018-04-19
                              15. 6265742414 2018-04-19
                              16. 1875142413 2018-04-19
                              17. 4146552412 2018-04-19
                              18. 8205662411 2018-04-19
                              19. 959982410 2018-04-19
                              20. 7153742409 2018-04-19