Returns a reference to the first element of the span.
The span must have at least one element. Attempting to use first()
on empty span will trigger an assertion failure in debug builds.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Returns a reference to the last element of the span.
The span must have at least one element. Attempting to use last()
on empty span will trigger an assertion failure in debug builds.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Tests whether the vector contains value
.