-
#include "tensorstore/util/span.h" -
template <size_t I, typename T, ptrdiff_t Extent>
T& tensorstore::get(const ::tensorstore::span<T, Extent>& s); Support for the standard tuple access protocol, as proposed in: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1024r0.pdf
This definition (along with the partial specializations of std::tuple_size and std::tuple_element defined below) makes fixed-size spans compatible with C++17 structured bindings.