std::array::back

From Cppreference

Jump to: navigation, search
reference back();
(C++11 feature)
const_reference back() const;
(C++11 feature)

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)