array::back

Access the last element.

Synopsis

value&
back() & noexcept; (1)

value&&
back() && noexcept; (2)

value const&
back() const& noexcept; (3)

Description

Returns a reference to the last element.

Preconditions

!empty()

Complexity

Constant.