std::queue<T,Container>::back (3) - Linux Man Pages

std::queue<T,Container>::back: std::queue<T,Container>::back

NAME

std::queue<T,Container>::back - std::queue<T,Container>::back

Synopsis


reference back();
const_reference back() const;


Returns reference to the last element in the queue. This is the most recently pushed element. Effectively calls c.back().

Parameters


(none)

Return value


reference to the last element

Complexity


Constant

See also


      access the first element
front (public member function)
      inserts element at the end
push (public member function)