cpp/container/span/back

Returns a reference to the last element in the span.

Calling on an empty span results in undefined behavior.

Parameters
(none)

Return value
A reference to the back element.

Complexity
Constant