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

Classes

class  _List_unchecked_const_iterator< _Mylist, _Base >
 
class  _List_unchecked_iterator< _Mylist >
 
class  _List_const_iterator< _Mylist >
 
class  _List_iterator< _Mylist >
 
struct  _List_iter_types< _Value_type, _Size_type, _Difference_type, _Pointer, _Const_pointer, _Reference, _Const_reference, _Nodeptr_type >
 
struct  _List_node< _Value_type, _Voidptr >
 
struct  _List_node< _Value_type, void * >
 
struct  _List_simple_types< _Ty >
 
struct  _List_base_types< _Ty, _Alloc0 >
 
class  _List_val< _Val_types >
 
class  _List_alloc< _Alloc_types >
 
class  _List_buy< _Ty, _Alloc >
 
class  list< _Ty, _Alloc >
 

Macros

#define _LIST_
 

Functions

template<class _Mylist >
_List_const_iterator< _Mylist >::_Unchecked_type _Unchecked (_List_const_iterator< _Mylist > _Iter)
 
template<class _Mylist >
_List_const_iterator< _Mylist > & _Rechecked (_List_const_iterator< _Mylist > &_Iter, typename _List_const_iterator< _Mylist >::_Unchecked_type _Right)
 
template<class _Mylist >
_List_iterator< _Mylist >::_Unchecked_type _Unchecked (_List_iterator< _Mylist > _Iter)
 
template<class _Mylist >
_List_iterator< _Mylist > & _Rechecked (_List_iterator< _Mylist > &_Iter, typename _List_iterator< _Mylist >::_Unchecked_type _Right)
 
template<class _Ty , class _Alloc >
void swap (list< _Ty, _Alloc > &_Left, list< _Ty, _Alloc > &_Right) _NOEXCEPT_OP(_NOEXCEPT_OP(_Left.swap(_Right)))
 
template<class _Ty , class _Alloc >
bool operator== (const list< _Ty, _Alloc > &_Left, const list< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator!= (const list< _Ty, _Alloc > &_Left, const list< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator< (const list< _Ty, _Alloc > &_Left, const list< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator> (const list< _Ty, _Alloc > &_Left, const list< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator<= (const list< _Ty, _Alloc > &_Left, const list< _Ty, _Alloc > &_Right)
 
template<class _Ty , class _Alloc >
bool operator>= (const list< _Ty, _Alloc > &_Left, const list< _Ty, _Alloc > &_Right)
 

Macro Definition Documentation

#define _LIST_

Function Documentation

template<class _Mylist >
_List_const_iterator<_Mylist>& _Rechecked ( _List_const_iterator< _Mylist > &  _Iter,
typename _List_const_iterator< _Mylist >::_Unchecked_type  _Right 
)
inline
318  { // convert to checked
319  return (_Iter._Rechecked(_Right));
320  }
_Myiter & _Rechecked(_Unchecked_type _Right)
Definition: list:192
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Mylist >
_List_iterator<_Mylist>& _Rechecked ( _List_iterator< _Mylist > &  _Iter,
typename _List_iterator< _Mylist >::_Unchecked_type  _Right 
)
inline
409  { // convert to checked
410  return (_Iter._Rechecked(_Right));
411  }
_Myiter & _Rechecked(_Unchecked_type _Right)
Definition: list:349
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Mylist >
_List_const_iterator<_Mylist>::_Unchecked_type _Unchecked ( _List_const_iterator< _Mylist >  _Iter)
inline
309  { // convert to unchecked
310  return (_Iter._Unchecked());
311  }
_Unchecked_type _Unchecked() const
Definition: list:198
template<class _Mylist >
_List_iterator<_Mylist>::_Unchecked_type _Unchecked ( _List_iterator< _Mylist >  _Iter)
inline
400  { // convert to unchecked
401  return (_Iter._Unchecked());
402  }
_Unchecked_type _Unchecked() const
Definition: list:355
template<class _Ty , class _Alloc >
bool operator!= ( const list< _Ty, _Alloc > &  _Left,
const list< _Ty, _Alloc > &  _Right 
)
inline
1999  { // test for list inequality
2000  return (!(_Left == _Right));
2001  }
template<class _Ty , class _Alloc >
bool operator< ( const list< _Ty, _Alloc > &  _Left,
const list< _Ty, _Alloc > &  _Right 
)
inline
2007  { // test if _Left < _Right for lists
2008  return (_STD lexicographical_compare(_Left.begin(), _Left.end(),
2009  _Right.begin(), _Right.end()));
2010  }
iterator begin() _NOEXCEPT
Definition: list:1142
iterator end() _NOEXCEPT
Definition: list:1154
bool lexicographical_compare(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2, _InIt2 _Last2)
Definition: memory:830
template<class _Ty , class _Alloc >
bool operator<= ( const list< _Ty, _Alloc > &  _Left,
const list< _Ty, _Alloc > &  _Right 
)
inline
2024  { // test if _Left <= _Right for lists
2025  return (!(_Right < _Left));
2026  }
template<class _Ty , class _Alloc >
bool operator== ( const list< _Ty, _Alloc > &  _Left,
const list< _Ty, _Alloc > &  _Right 
)
inline
1990  { // test for list equality
1991  return (_Left.size() == _Right.size()
1992  && _STD equal(_Left.begin(), _Left.end(), _Right.begin()));
1993  }
iterator begin() _NOEXCEPT
Definition: list:1142
iterator end() _NOEXCEPT
Definition: list:1154
bool equal(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2)
Definition: memory:611
size_type size() const _NOEXCEPT
Definition: list:1265
template<class _Ty , class _Alloc >
bool operator> ( const list< _Ty, _Alloc > &  _Left,
const list< _Ty, _Alloc > &  _Right 
)
inline
2016  { // test if _Left > _Right for lists
2017  return (_Right < _Left);
2018  }
template<class _Ty , class _Alloc >
bool operator>= ( const list< _Ty, _Alloc > &  _Left,
const list< _Ty, _Alloc > &  _Right 
)
inline
2032  { // test if _Left >= _Right for lists
2033  return (!(_Left < _Right));
2034  }
template<class _Ty , class _Alloc >
void swap ( list< _Ty, _Alloc > &  _Left,
list< _Ty, _Alloc > &  _Right 
)
inline
1982  { // swap _Left and _Right lists
1983  _Left.swap(_Right);
1984  }
void swap(_Myt &_Right) _NOEXCEPT_OP(_Alty
Definition: list:1551