constexpr reference back() const; |
Returns a reference to the last element in the span.
Calling back
on an empty span results in undefined behavior.
(none).
A reference to the back element.
Constant.
For a span c
, the expression c.back()
is equivalent to *(c.end()-1)
.
access the first element (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/container/span/back