value_type& top(); const value_type& top() 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.