#include "tensorstore/index_space/index_domain_builder.h"
template <typename BoxLike>
  
requires IsBoxLikeImplicitlyConvertibleToRank<BoxLike, Rank>
IndexDomainBuilder&
tensorstore::IndexDomainBuilder<Rank>::bounds(const BoxLike& box);

Specifies the lower and upper bounds.

Equivalent to origin(box.origin()).shape(box.shape()).

Template Parameters:
typename BoxLike

An instance of Box or BoxView with a static_rank implicitly convertible to Rank.

Parameters:
const BoxLike &box

The box specifying the domain.

Pre:

valid() == true

Checks:

box.size() == rank().

Note

Calling this method after the lower and/or upper bounds of the domain have already been specified simply overrides the previous values.