22 Containers library [containers]

22.7 Views [views]

22.7.3 Class template span [views.span]

22.7.3.5 Element access [span.elem]

constexpr reference operator[](index_type idx) const;
Expects: idx < size() is true.
Effects: Equivalent to: return *(data() + idx);
constexpr reference front() const;
Expects: empty() is false.
Effects: Equivalent to: return *data();
constexpr reference back() const;
Expects: empty() is false.
Effects: Equivalent to: return *(data() + (size() - 1));
constexpr pointer data() const noexcept;
Effects: Equivalent to: return data_­;