|
queue::backpublic member function
value_type& back ( ); const value_type& back ( ) const; Access last element Returns a reference to the last element in the queue. This is the "newest" element in the queue i.e. the last element pushed into queue.This member function effectively calls the member with the same name in the underlying container object. ParametersnoneReturn valueA reference to the last element in the queue.Member type value_type is defined to the type of value contained by the underlying container, which shall be the same as the first template parameter (T). Example
Output:
ComplexityConstant.See also
|