Template:cpp/container/back

Returns a reference to the last element in the container.

Calling on an empty container causes undefined behavior.

Parameters
(none)

Return value
Reference to the last element.

Complexity
Constant.