-
#include "tensorstore/box.h" -
template <typename BoxType, typename Indices>
requires HasBoxDomain<BoxType> && IsIndexConvertibleVector<Indices>
bool tensorstore::Contains(const BoxType& box,
const Indices& indices); -
template <typename BoxType, DimensionIndex IndicesRank>
requires HasBoxDomain<BoxType>
bool tensorstore::Contains(const BoxType& box,
const Index (&indices)[IndicesRank]); Returns
trueif the index vectorindicesis contained within the box, i.e. its length is equal to the rank of the box and each componentindices[i]is contained withinbox[i].