-
#include "tensorstore/box.h" -
template <typename BoxType, typename Indices>
requires HasBoxDomain<BoxType> && IsIndexConvertibleVector<Indices>
bool tensorstore::ContainsPartial(const BoxType& box,
const Indices& indices); -
template <typename BoxType, DimensionIndex IndicesRank>
requires HasBoxDomain<BoxType>
bool tensorstore::ContainsPartial(
const BoxType& box,
const Index (&indices)[IndicesRank]); Returns
trueif the partial index vectorindicesis contained within the box, i.e. its length is less than or equal to the rank of the box and each componentindices[i]is contained withinbox[i].- Parameters:¶
- const BoxType &box¶
A Box-like type or a type with a Box domain.
- const Indices &indices¶
- const Index (&indices)[IndicesRank]
A
span-compatible sequence withspan::value_typeconvertible without narrowing toIndex. May also be specified as a braced list, e.g.ContainsPartial(box, {1, 2, 3}).