-
#include "tensorstore/index_space/index_vector_or_scalar.h" -
template <typename T>
struct tensorstore::IsIndexVectorOrScalar; A type
Tsatisfies the IsIndexVectorOrScalar concept if it is either:convertible without narrowing to Index (scalar), in which case the nested
extentconstant equalsdynamic_rankand the nestednormalized_typealias equalsIndex; orcompatible with
spanwith aspan::value_typeofIndex(vector), in which case the nestednormalized_typealias is equal to the result type ofspan, and the nestedextentconstant is equal to thespan::extentofnormalized_type.
If
Tsatisfies theIsIndexVectorOrScalarconcept, this metafunction has defines a nestedvaluemember equal totrue, as well as nestedextentandnormalized_typemembers. Otherwise, this metafunction defines a nestedvaluemember equal tofalse, and no nestednormalized_typeorextentmembers.This concept is used to constrain the parameter types of some methods of
DimExpression.Data members¶
- constexpr const DimensionIndex extent = -1;
Compile-time length of the vector, or
dynamic_rankifTrepresents a scalar or the length is specified at run time.
Types¶
- using normalized_type = void;
Normalized scalar/vector type, equal to
Indexorspan<Index, extent>.