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

Classes

class  queue< _Ty, _Container >
 
class  priority_queue< _Ty, _Container, _Pr >
 
struct  std::uses_allocator< queue< _Ty, _Container >, _Alloc >
 
struct  std::uses_allocator< priority_queue< _Ty, _Container, _Pr >, _Alloc >
 

Macros

#define _QUEUE_
 

Functions

template<class _Ty , class _Container , class = enable_if_t<_Is_swappable<_Container>::value>>
void swap (queue< _Ty, _Container > &_Left, queue< _Ty, _Container > &_Right) _NOEXCEPT_OP(_NOEXCEPT_OP(_Left.swap(_Right)))
 
template<class _Ty , class _Container >
bool operator== (const queue< _Ty, _Container > &_Left, const queue< _Ty, _Container > &_Right)
 
template<class _Ty , class _Container >
bool operator!= (const queue< _Ty, _Container > &_Left, const queue< _Ty, _Container > &_Right)
 
template<class _Ty , class _Container >
bool operator< (const queue< _Ty, _Container > &_Left, const queue< _Ty, _Container > &_Right)
 
template<class _Ty , class _Container >
bool operator> (const queue< _Ty, _Container > &_Left, const queue< _Ty, _Container > &_Right)
 
template<class _Ty , class _Container >
bool operator<= (const queue< _Ty, _Container > &_Left, const queue< _Ty, _Container > &_Right)
 
template<class _Ty , class _Container >
bool operator>= (const queue< _Ty, _Container > &_Left, const queue< _Ty, _Container > &_Right)
 
template<class _Ty , class _Container , class _Pr , class = enable_if_t<_Is_swappable<_Container>::value && _Is_swappable<_Pr>::value>>
void swap (priority_queue< _Ty, _Container, _Pr > &_Left, priority_queue< _Ty, _Container, _Pr > &_Right) _NOEXCEPT_OP(_NOEXCEPT_OP(_Left.swap(_Right)))
 

Macro Definition Documentation

#define _QUEUE_

Function Documentation

template<class _Ty , class _Container >
bool operator!= ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
175  { // test for queue inequality
176  return (!(_Left == _Right));
177  }
template<class _Ty , class _Container >
bool operator< ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
183  { // test if _Left < _Right for queues
184  return (_Left._Get_container() < _Right._Get_container());
185  }
const _Container & _Get_container() const
Definition: queue:137
template<class _Ty , class _Container >
bool operator<= ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
199  { // test if _Left <= _Right for queues
200  return (!(_Right < _Left));
201  }
template<class _Ty , class _Container >
bool operator== ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
167  { // test for queue equality
168  return (_Left._Get_container() == _Right._Get_container());
169  }
const _Container & _Get_container() const
Definition: queue:137
template<class _Ty , class _Container >
bool operator> ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
191  { // test if _Left > _Right for queues
192  return (_Right < _Left);
193  }
template<class _Ty , class _Container >
bool operator>= ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
207  { // test if _Left >= _Right for queues
208  return (!(_Left < _Right));
209  }
template<class _Ty , class _Container , class = enable_if_t<_Is_swappable<_Container>::value>>
void swap ( queue< _Ty, _Container > &  _Left,
queue< _Ty, _Container > &  _Right 
)
inline
159  { // swap _Left and _Right queues
160  _Left.swap(_Right);
161  }
void swap(_Myt &_Right) _NOEXCEPT_OP(_Is_nothrow_swappable< _Container >
Definition: queue:142
template<class _Ty , class _Container , class _Pr , class = enable_if_t<_Is_swappable<_Container>::value && _Is_swappable<_Pr>::value>>
void swap ( priority_queue< _Ty, _Container, _Pr > &  _Left,
priority_queue< _Ty, _Container, _Pr > &  _Right 
)
inline
395  { // swap _Left and _Right queues
396  _Left.swap(_Right);
397  }
void swap(_Myt &_Right) _NOEXCEPT_OP(_Is_nothrow_swappable< _Container >
Definition: queue:374