Instigate Open Source Documentation

instigate::stl::pair::interface< T > Struct Template Reference

Interface of the Pair Concept. More...

#include <_pair.hpp>

List of all members.

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.


Detailed Description

template<typename T>
struct instigate::stl::pair::interface< T >

Interface of the Pair Concept.

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.


Member Function Documentation

template<typename T>
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.

Parameters:
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().

template<typename T>
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.

Parameters:
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().


The documentation for this struct was generated from the following file:


© Instigate CJSC, Open Source