libstdc++
|
#include <stl_pair.h>
Public Types | |
typedef _T1 | first_type |
typedef _T2 | second_type |
Public Attributes | |
_T1 | first |
_T2 | second |
Related Symbols | |
(Note that these are not member symbols.) | |
template<typename _T1 , typename _T2 > | |
constexpr pair< typename __decay_and_strip< _T1 >::__type, typename __decay_and_strip< _T2 >::__type > | make_pair (_T1 &&__x, _T2 &&__y) |
template<typename _T1 , typename _T2 > | |
constexpr bool | operator== (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y) |
template<typename _T1 , typename _T2 > | |
constexpr bool | operator< (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y) |
template<typename _T1 , typename _T2 > | |
constexpr bool | operator!= (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y) |
template<typename _T1 , typename _T2 > | |
constexpr bool | operator> (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y) |
template<typename _T1 , typename _T2 > | |
constexpr bool | operator<= (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y) |
template<typename _T1 , typename _T2 > | |
constexpr bool | operator>= (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y) |
template<typename _T1 , typename _T2 > | |
constexpr enable_if< __and_< __is_swappable< _T1 >, __is_swappable< _T2 > >::value >::type | swap (pair< _T1, _T2 > &__x, pair< _T1, _T2 > &__y) noexcept(noexcept(__x.swap(__y))) |
Struct holding two objects of arbitrary type.
_T1 | Type of first object. |
_T2 | Type of second object. |
https://gcc.gnu.org/onlinedocs/libstdc++/manual/utilities.html
Definition at line 211 of file stl_pair.h.
The type of the first
member.
Definition at line 214 of file stl_pair.h.
The type of the second
member.
Definition at line 215 of file stl_pair.h.
|
inlineconstexpr |
The default constructor creates first
and second
using their respective default constructors.
Definition at line 232 of file stl_pair.h.
|
inlineexplicitconstexpr |
Definition at line 245 of file stl_pair.h.
|
inlineconstexpr |
Construct from two const lvalues, allowing implicit conversions.
Definition at line 266 of file stl_pair.h.
|
inlineexplicitconstexpr |
Construct from two const lvalues, disallowing implicit conversions.
Definition at line 276 of file stl_pair.h.
|
inlineconstexpr |
Definition at line 300 of file stl_pair.h.
|
inlineexplicitconstexpr |
Definition at line 309 of file stl_pair.h.
Copy constructor.
|
inlineconstexpr |
Definition at line 322 of file stl_pair.h.
|
inlineexplicitconstexpr |
Definition at line 329 of file stl_pair.h.
|
inlineconstexpr |
Definition at line 336 of file stl_pair.h.
|
inlineexplicit |
Definition at line 343 of file stl_pair.h.
|
inlineconstexpr |
Definition at line 352 of file stl_pair.h.
|
inlineexplicitconstexpr |
Definition at line 361 of file stl_pair.h.
|
inlineconstexpr |
Definition at line 371 of file stl_pair.h.
|
inlineexplicitconstexpr |
Definition at line 381 of file stl_pair.h.
|
inlineconstexpr |
Definition at line 418 of file stl_pair.h.
|
inlineconstexpr |
Definition at line 430 of file stl_pair.h.
|
inlineconstexpr |
Definition at line 390 of file stl_pair.h.
|
inlineconstexprnoexcept |
Definition at line 401 of file stl_pair.h.
Swap the first members and then the second members.
Definition at line 439 of file stl_pair.h.
References std::pair< _T1, _T2 >::first, std::pair< _T1, _T2 >::second, std::swap(), and std::pair< _T1, _T2 >::swap().
Referenced by std::pair< _T1, _T2 >::swap().
The first member.
Definition at line 217 of file stl_pair.h.
Referenced by std::pair< _T1, _T2 >::swap().
The second member.
Definition at line 218 of file stl_pair.h.
Referenced by std::pair< _T1, _T2 >::swap().