Addressing the std::span Elements
Get yourself familiar with the various convenience functions to address the elements of the std::span.
We'll cover the following...
The following table presents the functions to refer to the elements of a std::span
.
Function | Description |
---|---|
sp.front() |
Access the first element. |
sp.back() |
Access the last element. |