#include "tensorstore/box.h"
template <typename BoxType, typename Indices>
  
requires HasBoxDomain<BoxType> && IsIndexConvertibleVector<Indices>
bool tensorstore::Contains(const BoxTypebox,
                           
const Indicesindices);
template <typename BoxType, DimensionIndex IndicesRank>
  
requires HasBoxDomain<BoxType>
bool tensorstore::Contains(const BoxTypebox,
                           
const Index (&indices)[IndicesRank]);

Returns true if the index vector indices is contained within the box, i.e. its length is equal to the rank of the box and each component indices[i] is contained within box[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 with span::value_type convertible without narrowing to Index. May also be specified as a braced list, e.g. Contains(box, {1, 2, 3}).