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

Classes

class  stack< _Ty, _Container >
 
struct  std::uses_allocator< stack< _Ty, _Container >, _Alloc >
 

Macros

#define _STACK_
 

Functions

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

Macro Definition Documentation

#define _STACK_

Function Documentation

template<class _Ty , class _Container >
bool operator!= ( const stack< _Ty, _Container > &  _Left,
const stack< _Ty, _Container > &  _Right 
)
inline
187  { // test for stack inequality
188  return (!(_Left == _Right));
189  }
template<class _Ty , class _Container >
bool operator< ( const stack< _Ty, _Container > &  _Left,
const stack< _Ty, _Container > &  _Right 
)
inline
195  { // test if _Left < _Right for stacks
196  return (_Left._Get_container() < _Right._Get_container());
197  }
const _Container & _Get_container() const
Definition: stack:148
template<class _Ty , class _Container >
bool operator<= ( const stack< _Ty, _Container > &  _Left,
const stack< _Ty, _Container > &  _Right 
)
inline
211  { // test if _Left <= _Right for stacks
212  return (!(_Right < _Left));
213  }
template<class _Ty , class _Container >
bool operator== ( const stack< _Ty, _Container > &  _Left,
const stack< _Ty, _Container > &  _Right 
)
inline
179  { // test for stack equality
180  return (_Left._Get_container() == _Right._Get_container());
181  }
const _Container & _Get_container() const
Definition: stack:148
template<class _Ty , class _Container >
bool operator> ( const stack< _Ty, _Container > &  _Left,
const stack< _Ty, _Container > &  _Right 
)
inline
203  { // test if _Left > _Right for stacks
204  return (_Right < _Left);
205  }
template<class _Ty , class _Container >
bool operator>= ( const stack< _Ty, _Container > &  _Left,
const stack< _Ty, _Container > &  _Right 
)
inline
219  { // test if _Left >= _Right for stacks
220  return (!(_Left < _Right));
221  }
template<class _Ty , class _Container , class = enable_if_t<_Is_swappable<_Container>::value>>
void swap ( stack< _Ty, _Container > &  _Left,
stack< _Ty, _Container > &  _Right 
)
inline
171  { // swap _Left and _Right stacks
172  _Left.swap(_Right);
173  }
void swap(_Myt &_Right) _NOEXCEPT_OP(_Is_nothrow_swappable< _Container >
Definition: stack:157