#include "tensorstore/rank.h"
template <typename SourceRef, DimensionIndex TargetRank>
using tensorstore::RebindRank;

Evaluates to a type similar to SourceRef but with a static rank of TargetRank.

Supported types include StaticOrDynamicRank<Rank> (i.e. DimensionIndex and std::integral_constant<DimensionIndex, Rank>), Array, StridedLayout, Box, TransformedArray, TensorStore.

Template Parameters:
typename SourceRef

Optionally const- and/or reference-qualified source type. Any qualifiers are ignored.

DimensionIndex TargetRank

Target rank value.