queue::back

value_type& back();
const value_type& back() const;

The member function returns a reference to the last element of the controlled sequence, which must be non-empty.

See the related sample program.