std::list::back

From Cppreference

Jump to: navigation, search
reference back();

const_reference back() const;

Returns reference to the last element in the container.

Contents

[edit] Parameters

(none)

[edit] Return value

reference to the last element

[edit] Complexity

Constant

[edit] See also

front
access the first element
(public member function)