Standard C++ Library Class Reference

management.
Allocator
allocator_type get_allocator () const;
Returns a copy of the allocator used by self for storage management.
Member Functions
value_type&
back ();
Returns a reference to the item at the back of the queue (the last item pushed into the
queue).
const value_type&
back() const;
Returns a constant reference to the item at the back of the queue as a const_value_type.
bool
empty () const;
Returns true if the queue is empty, otherwise false.
value_type&
front ();
Returns a reference to the item at the front of the queue. This will be the first item pushed
onto the queue unless pop() has been called since then.
const value_type&
front () const;
Returns a constant reference to the item at the front of the queue as a const_value_type.
void
pop ();
Removes the item at the front of the queue.
void
push (const value_type& x);
Pushes x onto the back of the queue.
size_type
size () const;
Returns the number of elements on the queue.