cpp/container/span/front

Returns a reference to the first element in the span.

Calling on an empty span results in undefined behavior.

Parameters
(none)

Return value
A reference to the first element.

Complexity
Constant