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

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

# Declarations

reference back();
const_reference back() const;

# Return value

Reference to the last element.

# See also