|
queue::frontpublic member function
value_type& front ( ); const value_type& front ( ) const; Access next element Returns a reference to the next element in the queue. This is the "oldest" element in the queue and the same element that is popped out from the queue if member queue::pop is called.This member function effectively calls the member with the same name in the underlying container object. ParametersnoneReturn valueA reference to the next 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
|