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::pair< _Value1_t, _Value2_t > Class Template Reference

Public Types

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

Public Member Functions

 pair ()
 
 pair (pair%_Right)
 
 pair (pair^_Right)
 
pair operator= (pair%_Right)
 
pair operator= (pair^_Right)
 
 pair (first_type _Val1)
 
 pair (first_type _Val1, second_type _Val2)
 
template<typename _Pair_t >
 pair (_Pair_t%_Right)
 
template<typename _Pair_t >
 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 pair<_Value1_t, _Value2_t> cliext::pair< _Value1_t, _Value2_t >::_Mytype_t
template<typename _Value1_t , typename _Value2_t >
typedef _Value1_t cliext::pair< _Value1_t, _Value2_t >::first_type
template<typename _Value1_t , typename _Value2_t >
typedef _Value2_t cliext::pair< _Value1_t, _Value2_t >::second_type

Constructor & Destructor Documentation

template<typename _Value1_t , typename _Value2_t >
cliext::pair< _Value1_t, _Value2_t >::pair ( )
inline
22  { // construct default
23  }
template<typename _Value1_t , typename _Value2_t >
cliext::pair< _Value1_t, _Value2_t >::pair ( pair< _Value1_t, _Value2_t >%  _Right)
inline
26  : first(_Right.first), second(_Right.second)
27  { // construct by copying _Right
28  }
first_type first
Definition: utility:96
second_type second
Definition: utility:97
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<typename _Value1_t , typename _Value2_t >
cliext::pair< _Value1_t, _Value2_t >::pair ( pair< _Value1_t, _Value2_t >^  _Right)
inline
31  : first(_Right->first), second(_Right->second)
32  { // construct by copying _Right
33  }
first_type first
Definition: utility:96
second_type second
Definition: utility:97
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<typename _Value1_t , typename _Value2_t >
cliext::pair< _Value1_t, _Value2_t >::pair ( first_type  _Val1)
inline
51  : first(_Val1)
52  { // construct from first value only
53  }
first_type first
Definition: utility:96
template<typename _Value1_t , typename _Value2_t >
cliext::pair< _Value1_t, _Value2_t >::pair ( first_type  _Val1,
second_type  _Val2 
)
inline
56  : first(_Val1), second(_Val2)
57  { // construct from specified values
58  }
first_type first
Definition: utility:96
second_type second
Definition: utility:97
template<typename _Value1_t , typename _Value2_t >
template<typename _Pair_t >
cliext::pair< _Value1_t, _Value2_t >::pair ( _Pair_t%  _Right)
inline
62  : first(_Right.first), second(_Right.second)
63  { // construct from pair type
64  }
first_type first
Definition: utility:96
second_type second
Definition: utility:97
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<typename _Value1_t , typename _Value2_t >
template<typename _Pair_t >
cliext::pair< _Value1_t, _Value2_t >::pair ( _Pair_t^  _Right)
inline
68  : first(_Right->first), second(_Right->second)
69  { // construct from pair type
70  }
first_type first
Definition: utility:96
second_type second
Definition: utility:97
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::pair< _Value1_t, _Value2_t >::operator _Pair_t< _OtherFirst_t, _OtherSecond_t > ( )
inline
74  { // convert to compatible pair
75  _Pair_t<_OtherFirst_t, _OtherSecond_t> _Newpair((_OtherFirst_t)first,(_OtherSecond_t)second);
76 
77  return (_Newpair);
78  }
first_type first
Definition: utility:96
second_type second
Definition: utility:97
template<typename _Value1_t , typename _Value2_t >
pair cliext::pair< _Value1_t, _Value2_t >::operator= ( pair< _Value1_t, _Value2_t >%  _Right)
inline
36  { // assign
37  first = _Right.first;
38  second = _Right.second;
39  return (*this);
40  }
first_type first
Definition: utility:96
second_type second
Definition: utility:97
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<typename _Value1_t , typename _Value2_t >
pair cliext::pair< _Value1_t, _Value2_t >::operator= ( pair< _Value1_t, _Value2_t >^  _Right)
inline
43  { // assign
44  first = _Right->first;
45  second = _Right->second;
46  return (*this);
47  }
first_type first
Definition: utility:96
second_type second
Definition: utility:97
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<typename _Value1_t , typename _Value2_t >
void cliext::pair< _Value1_t, _Value2_t >::swap ( pair< _Value1_t, _Value2_t >%  _Right)
inline
82  { // exchange contents with _Right
83  if ((Object^)this != %_Right)
84  { // worth swapping, do it
85  _Value1_t _Tfirst = first;
86  _Value2_t _Tsecond = second;
87 
88  first = _Right.first;
89  _Right.first = _Tfirst;
90 
91  second = _Right.second;
92  _Right.second = _Tsecond;
93  }
94  }
first_type first
Definition: utility:96
second_type second
Definition: utility:97
constexpr const _Ty &() _Right
Definition: algorithm:3591

Member Data Documentation

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

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