-
#include "tensorstore/util/span.h"
-
template <typename X, ptrdiff_t N>
std::integral_constant<ptrdiff_t, N>
tensorstore::GetStaticOrDynamicExtent(span<X, N>); -
template <typename X>
ptrdiff_t tensorstore::GetStaticOrDynamicExtent(span<X> s); Returns the size of
span
as anstd::integral_constant
orDimensionIndex
.The result is a valid
StaticOrDynamicRank
value.