Namespaces
Variants
Views
Actions

std::queue::back

From cppreference.com
< cpp‎ | container‎ | queue
Revision as of 21:51, 31 May 2013 by P12bot (Talk | contribs)

reference back();
const_reference back() const;

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

Contents

Parameters

(none)

Return value

reference to the last element

Complexity

Constant

See also

access the first element
(public member function of std::{{{1}}}) [edit]
inserts element at the end
(public member function) [edit]