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

Returns true if the partial index vector indices is contained within the box, i.e. its length is less than or 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. ContainsPartial(box, {1, 2, 3}).