#include <_pair.hpp>
Public Types | |
typedef T::first_type | first_type |
the type of the first value | |
typedef T::second_type | second_type |
the type of the second value | |
Static Public Member Functions | |
static void | set_first (T &a, const first_type &f) |
Set value f to the first element a in the pair. | |
static void | set_second (T &a, const second_type &s) |
Set value f to the second element a in the pair. |
This is a "non-intrusive" interface of the pair type.It couples together a pair of values, which may be of different types (first_type and second_type). The individual values can be set through the public members set_first and set_second.
static void instigate::stl::pair::interface< T >::set_first | ( | T & | a, | |
const first_type & | f | |||
) | [inline, static] |
Set value f to the first element a in the pair.
a | - the argument to be assigned | |
f | - the value to assign |
References instigate::generic::assignable::interface< T >::assign().
Referenced by instigate::stl::implementation::__copy_n(), and instigate::stl::pair::requirements< T >::require_set_first().
static void instigate::stl::pair::interface< T >::set_second | ( | T & | a, | |
const second_type & | s | |||
) | [inline, static] |
Set value f to the second element a in the pair.
a | - the argument to be assigned | |
s | - the value to assign |
References instigate::generic::assignable::interface< T >::assign().
Referenced by instigate::stl::implementation::__copy_n(), and instigate::stl::pair::requirements< T >::require_set_second().