STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
cliext::light_pair< _Value1_t, _Value2_t > Class Template Reference

Public Types

typedef light_pair< _Value1_t, _Value2_t > _Mytype_t
 
typedef _Value1_t first_type
 
typedef _Value2_t second_type
 

Public Member Functions

 light_pair (first_type _Val1)
 
 light_pair (first_type _Val1, second_type _Val2)
 
template<typename _Pair_t >
 light_pair (_Pair_t%_Right)
 
template<template< class, class > class _Pair_t, typename _OtherFirst_t , typename _OtherSecond_t >
 operator _Pair_t< _OtherFirst_t, _OtherSecond_t > ()
 
void swap (pair%_Right)
 

Public Attributes

first_type first
 
second_type second
 

Member Typedef Documentation

template<typename _Value1_t , typename _Value2_t >
typedef light_pair<_Value1_t, _Value2_t> cliext::light_pair< _Value1_t, _Value2_t >::_Mytype_t
template<typename _Value1_t , typename _Value2_t >
typedef _Value1_t cliext::light_pair< _Value1_t, _Value2_t >::first_type
template<typename _Value1_t , typename _Value2_t >
typedef _Value2_t cliext::light_pair< _Value1_t, _Value2_t >::second_type

Constructor & Destructor Documentation

template<typename _Value1_t , typename _Value2_t >
cliext::light_pair< _Value1_t, _Value2_t >::light_pair ( first_type  _Val1)
inline
180  : first(_Val1)
181  { // construct from first value only
182  }
first_type first
Definition: utility:219
template<typename _Value1_t , typename _Value2_t >
cliext::light_pair< _Value1_t, _Value2_t >::light_pair ( first_type  _Val1,
second_type  _Val2 
)
inline
185  : first(_Val1), second(_Val2)
186  { // construct from specified values
187  }
first_type first
Definition: utility:219
second_type second
Definition: utility:220
template<typename _Value1_t , typename _Value2_t >
template<typename _Pair_t >
cliext::light_pair< _Value1_t, _Value2_t >::light_pair ( _Pair_t%  _Right)
inline
191  : _First(_Right.first), _Second(_Right.second)
192  { // construct from ref_pair
193  }
constexpr const _Ty &() _Right
Definition: algorithm:3591

Member Function Documentation

template<typename _Value1_t , typename _Value2_t >
template<template< class, class > class _Pair_t, typename _OtherFirst_t , typename _OtherSecond_t >
cliext::light_pair< _Value1_t, _Value2_t >::operator _Pair_t< _OtherFirst_t, _OtherSecond_t > ( )
inline
197  { // convert to compatible pair
198  _Pair_t<_OtherFirst_t, _OtherSecond_t> _Newpair((_OtherFirst_t)first,(_OtherSecond_t)second);
199 
200  return (_Newpair);
201  }
first_type first
Definition: utility:219
second_type second
Definition: utility:220
template<typename _Value1_t , typename _Value2_t >
void cliext::light_pair< _Value1_t, _Value2_t >::swap ( pair _Right)
inline
205  { // exchange contents with _Right
206  if ((Object^)this != %_Right)
207  { // worth swapping, do it
208  _Value1_t _Tfirst = first;
209  _Value2_t _Tsecond = second;
210 
211  first = _Right.first;
212  _Right.first = _Tfirst;
213 
214  second = _Right.second;
215  _Right.second = _Tsecond;
216  }
217  }
first_type first
Definition: utility:219
constexpr const _Ty &() _Right
Definition: algorithm:3591
second_type second
Definition: utility:220

Member Data Documentation

template<typename _Value1_t , typename _Value2_t >
first_type cliext::light_pair< _Value1_t, _Value2_t >::first
template<typename _Value1_t , typename _Value2_t >
second_type cliext::light_pair< _Value1_t, _Value2_t >::second

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