#include "tensorstore/box.h"
template <typename OriginVec, typename ShapeVec>
  
requires IsImplicitlyCompatibleFullIndexVector<static_rank,
                                                
 OriginVec> &&
          
 IsImplicitlyCompatibleFullIndexVector<static_rank,
                                                
 ShapeVec>
explicit tensorstore::Box<Rank>::Box(OriginVec origin,
                                     
ShapeVec shape);
template <size_t N>
  
requires (RankConstraint::Implies(N, static_rank))
explicit tensorstore::Box<Rank>::Box(const Index (&origin)[N],
                                     
const Index (&shape)[N]);

Constructs from an origin array and shape array.

Parameters:
OriginVec origin
const Index (&origin)[N]

Array of origin values.

ShapeVec shape
const Index (&shape)[N]

Array of extents.

Dchecks:

std::size(origin) == std::size(shape)

Requires:

OriginVec and ShapeVec are span-compatible with static extents implicitly convertible to static_rank and element types convertible without narrowing to Index.