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
199  { // test for queue inequality
200  return (!(_Left == _Right));
201  }
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._Get_container() < _Right._Get_container());
209  }
const _Container & _Get_container() const
Definition: queue:160
template<class _Ty , class _Container >
bool operator<= ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
223  { // test if _Left <= _Right for queues
224  return (!(_Right < _Left));
225  }
template<class _Ty , class _Container >
bool operator== ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
191  { // test for queue equality
192  return (_Left._Get_container() == _Right._Get_container());
193  }
const _Container & _Get_container() const
Definition: queue:160
template<class _Ty , class _Container >
bool operator> ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
215  { // test if _Left > _Right for queues
216  return (_Right < _Left);
217  }
template<class _Ty , class _Container >
bool operator>= ( const queue< _Ty, _Container > &  _Left,
const queue< _Ty, _Container > &  _Right 
)
inline
231  { // test if _Left >= _Right for queues
232  return (!(_Left < _Right));
233  }
template<class _Ty , class _Container , class = enable_if_t<_Is_swappable<_Container>::value>>
void swap ( queue< _Ty, _Container > &  _Left,
queue< _Ty, _Container > &  _Right 
)
inline
183  { // swap _Left and _Right queues
184  _Left.swap(_Right);
185  }
void swap(_Myt &_Right) _NOEXCEPT_OP(_Is_nothrow_swappable< _Container >
Definition: queue:169
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
447  { // swap _Left and _Right queues
448  _Left.swap(_Right);
449  }
void swap(_Myt &_Right) _NOEXCEPT_OP(_Is_nothrow_swappable< _Container >
Definition: queue:430