Spec-Zone.ru › C++

std::queue<T,Container>::back

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().

Parameters

(none)

Return value

Reference to the last element.

Complexity

Constant.

See also

front
access the first element
(public member function)
push
inserts element at the end
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/container/queue/back

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API