STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Typedefs | Functions | Variables
vector File Reference
#include <xmemory>
#include <stdexcept>

Classes

class  _Vector_const_iterator< _Myvec >
 
class  _Vector_iterator< _Myvec >
 
struct  _Vec_iter_types< _Value_type, _Size_type, _Difference_type, _Pointer, _Const_pointer, _Reference, _Const_reference >
 
struct  _Vec_base_types< _Ty, _Alloc0 >
 
class  _Vector_val< _Val_types >
 
class  _Vector_alloc< _Alloc_types >
 
class  vector< _Ty, _Alloc >
 
class  _Vb_iter_base< _Alloc >
 
class  _Vb_reference< _Alloc >
 
class  _Vb_const_iterator< _Alloc >
 
struct  _Is_checked_helper< _Vb_const_iterator< _Alloc > >
 
class  _Vb_iterator< _Alloc >
 
struct  _Is_checked_helper< _Vb_iterator< _Alloc > >
 
class  _Vb_val< _Alloc >
 
class  vector< bool, _Alloc >
 
struct  hash< vector< bool, _Alloc > >
 

Macros

#define _VECTOR_
 
#define _VECTOR_ORPHAN_RANGE   (_ITERATOR_DEBUG_LEVEL == 2)
 
#define _VICONT(it)   it._Getcont()
 
#define _VIPTR(it)   (it)._Ptr
 

Typedefs

typedef unsigned int _Vbase
 

Functions

template<class _Myvec >
_Vector_const_iterator< _Myvec >::_Unchecked_type _Unchecked (_Vector_const_iterator< _Myvec > _Iter)
 
template<class _Myvec >
_Vector_const_iterator< _Myvec > & _Rechecked (_Vector_const_iterator< _Myvec > &_Iter, typename _Vector_const_iterator< _Myvec >::_Unchecked_type _Right)
 
template<class _Myvec >
_Vector_const_iterator< _Myvec > operator+ (typename _Vector_const_iterator< _Myvec >::difference_type _Off, _Vector_const_iterator< _Myvec > _Next)
 
template<class _Myvec >
_Vector_iterator< _Myvec >::_Unchecked_type _Unchecked (_Vector_iterator< _Myvec > _Iter)
 
template<class _Myvec >
_Vector_iterator< _Myvec > & _Rechecked (_Vector_iterator< _Myvec > &_Iter, typename _Vector_iterator< _Myvec >::_Unchecked_type _Right)
 
template<class _Myvec >
_Vector_iterator< _Myvec > operator+ (typename _Vector_iterator< _Myvec >::difference_type _Off, _Vector_iterator< _Myvec > _Next)
 
template<class _Ty , class _Alloc >
void swap (vector< _Ty, _Alloc > &_Left, vector< _Ty, _Alloc > &_Right) _NOEXCEPT_OP(_NOEXCEPT_OP(_Left.swap(_Right)))
 
template<class _Ty , class _Alloc >
bool operator== (const vector< _Ty, _Alloc > &_Left, const vector< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator!= (const vector< _Ty, _Alloc > &_Left, const vector< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator< (const vector< _Ty, _Alloc > &_Left, const vector< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator> (const vector< _Ty, _Alloc > &_Left, const vector< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator<= (const vector< _Ty, _Alloc > &_Left, const vector< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator>= (const vector< _Ty, _Alloc > &_Left, const vector< _Ty, _Alloc > &_Right)
 
template<class _Alloc >
void swap (_Vb_reference< _Alloc > _Left, _Vb_reference< _Alloc > _Right)
 
template<class _Alloc >
_Vb_const_iterator< _Alloc > operator+ (typename _Alloc::difference_type _Off, _Vb_const_iterator< _Alloc > _Right)
 
template<class _Alloc >
_Vb_iterator< _Alloc > operator+ (typename _Alloc::difference_type _Off, _Vb_iterator< _Alloc > _Right)
 
template<class _Alloc >
bool operator== (const vector< bool, _Alloc > &_Left, const vector< bool, _Alloc > &_Right)
 
template<class _Alloc >
bool operator!= (const vector< bool, _Alloc > &_Left, const vector< bool, _Alloc > &_Right)
 

Variables

const int _VBITS = 8 * sizeof (_Vbase)
 

Macro Definition Documentation

#define _VECTOR_
#define _VECTOR_ORPHAN_RANGE   (_ITERATOR_DEBUG_LEVEL == 2)
#define _VICONT (   it)    it._Getcont()
#define _VIPTR (   it)    (it)._Ptr

Typedef Documentation

typedef unsigned int _Vbase

Function Documentation

template<class _Myvec >
_Vector_const_iterator<_Myvec>& _Rechecked ( _Vector_const_iterator< _Myvec > &  _Iter,
typename _Vector_const_iterator< _Myvec >::_Unchecked_type  _Right 
)
inline
280  { // convert to checked
281  return (_Iter._Rechecked(_Right));
282  }
_Myiter & _Rechecked(_Unchecked_type _Right)
Definition: vector:53
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Myvec >
_Vector_iterator<_Myvec>& _Rechecked ( _Vector_iterator< _Myvec > &  _Iter,
typename _Vector_iterator< _Myvec >::_Unchecked_type  _Right 
)
inline
411  { // convert to checked
412  return (_Iter._Rechecked(_Right));
413  }
_Myiter & _Rechecked(_Unchecked_type _Right)
Definition: vector:318
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Myvec >
_Vector_const_iterator<_Myvec>::_Unchecked_type _Unchecked ( _Vector_const_iterator< _Myvec >  _Iter)
inline
271  { // convert to unchecked
272  return (_Iter._Unchecked());
273  }
_Unchecked_type _Unchecked() const
Definition: vector:59
template<class _Myvec >
_Vector_iterator<_Myvec>::_Unchecked_type _Unchecked ( _Vector_iterator< _Myvec >  _Iter)
inline
402  { // convert to unchecked
403  return (_Iter._Unchecked());
404  }
_Unchecked_type _Unchecked() const
Definition: vector:324
template<class _Ty , class _Alloc >
bool operator!= ( const vector< _Ty, _Alloc > &  _Left,
const vector< _Ty, _Alloc > &  _Right 
)
inline
1821  { // test for vector inequality
1822  return (!(_Left == _Right));
1823  }
template<class _Alloc >
bool operator!= ( const vector< bool, _Alloc > &  _Left,
const vector< bool, _Alloc > &  _Right 
)
inline
3012  { // test for vector inequality
3013  return (!(_Left == _Right));
3014  }
template<class _Myvec >
_Vector_const_iterator<_Myvec> operator+ ( typename _Vector_const_iterator< _Myvec >::difference_type  _Off,
_Vector_const_iterator< _Myvec >  _Next 
)
inline
288  { // add offset to iterator
289  return (_Next += _Off);
290  }
template<class _Myvec >
_Vector_iterator<_Myvec> operator+ ( typename _Vector_iterator< _Myvec >::difference_type  _Off,
_Vector_iterator< _Myvec >  _Next 
)
inline
419  { // add offset to iterator
420  return (_Next += _Off);
421  }
template<class _Alloc >
_Vb_const_iterator<_Alloc> operator+ ( typename _Alloc::difference_type  _Off,
_Vb_const_iterator< _Alloc >  _Right 
)
inline
2206  { // return _Right + integer
2207  return (_Right += _Off);
2208  }
template<class _Alloc >
_Vb_iterator<_Alloc> operator+ ( typename _Alloc::difference_type  _Off,
_Vb_iterator< _Alloc >  _Right 
)
inline
2312  { // return _Right + integer
2313  return (_Right += _Off);
2314  }
template<class _Ty , class _Alloc >
bool operator< ( const vector< _Ty, _Alloc > &  _Left,
const vector< _Ty, _Alloc > &  _Right 
)
inline
1829  { // test if _Left < _Right for vectors
1830  return (_STD lexicographical_compare(_Left.begin(), _Left.end(),
1831  _Right.begin(), _Right.end()));
1832  }
iterator begin() _NOEXCEPT
Definition: vector:1056
iterator end() _NOEXCEPT
Definition: vector:1066
bool lexicographical_compare(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2, _InIt2 _Last2)
Definition: memory:830
template<class _Ty , class _Alloc >
bool operator<= ( const vector< _Ty, _Alloc > &  _Left,
const vector< _Ty, _Alloc > &  _Right 
)
inline
1846  { // test if _Left <= _Right for vectors
1847  return (!(_Right < _Left));
1848  }
template<class _Ty , class _Alloc >
bool operator== ( const vector< _Ty, _Alloc > &  _Left,
const vector< _Ty, _Alloc > &  _Right 
)
inline
1812  { // test for vector equality
1813  return (_Left.size() == _Right.size()
1814  && _STD equal(_Left.begin(), _Left.end(), _Right.begin()));
1815  }
iterator begin() _NOEXCEPT
Definition: vector:1056
size_type size() const _NOEXCEPT
Definition: vector:1178
iterator end() _NOEXCEPT
Definition: vector:1066
bool equal(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2)
Definition: memory:611
template<class _Alloc >
bool operator== ( const vector< bool, _Alloc > &  _Left,
const vector< bool, _Alloc > &  _Right 
)
inline
3003  { // test for vector equality
3004  return (_Left.size() == _Right.size()
3005  && _STD equal(_Left._Myvec.begin(), _Left._Myvec.end(),
3006  _Right._Myvec.begin()));
3007  }
iterator begin() _NOEXCEPT
Definition: vector:1056
_Vectype _Myvec
Definition: vector:2416
iterator end() _NOEXCEPT
Definition: vector:1066
bool equal(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2)
Definition: memory:611
size_type size() const _NOEXCEPT
Definition: vector:2683
template<class _Ty , class _Alloc >
bool operator> ( const vector< _Ty, _Alloc > &  _Left,
const vector< _Ty, _Alloc > &  _Right 
)
inline
1838  { // test if _Left > _Right for vectors
1839  return (_Right < _Left);
1840  }
template<class _Ty , class _Alloc >
bool operator>= ( const vector< _Ty, _Alloc > &  _Left,
const vector< _Ty, _Alloc > &  _Right 
)
inline
1854  { // test if _Left >= _Right for vectors
1855  return (!(_Left < _Right));
1856  }
template<class _Ty , class _Alloc >
void swap ( vector< _Ty, _Alloc > &  _Left,
vector< _Ty, _Alloc > &  _Right 
)
inline
1804  { // swap _Left and _Right vectors
1805  _Left.swap(_Right);
1806  }
void swap(_Myt &_Right) _NOEXCEPT_OP(_Alty
Definition: vector:1545
template<class _Alloc >
void swap ( _Vb_reference< _Alloc >  _Left,
_Vb_reference< _Alloc >  _Right 
)
inline
1988  { // swap _Left and _Right vector<bool> elements
1989  bool _Val = _Left; // NOT _STD swap
1990  _Left = _Right;
1991  _Right = _Val;
1992  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
_In_ int _Val
Definition: vcruntime_string.h:62
constexpr const _Ty &() _Right
Definition: algorithm:3591

Variable Documentation

const int _VBITS = 8 * sizeof (_Vbase)