#include "tensorstore/box.h"
template <typename BoxType>
  
requires IsBoxLike<BoxType>
BoxView<dynamic_rank, IsMutableBoxLike<BoxType>>
tensorstore::SubBoxView(BoxType&box,
                        
DimensionIndex begin = 0,
                        
DimensionIndex end = -1);

Returns a view of the sub-box corresponding to the specified dimension range.

Parameters:
BoxType &&box

The existing box from which to extract the sub-box.

DimensionIndex begin = 0

Inclusive start dimension of the sub-box.

DimensionIndex end = -1

Exclusive end dimension of the sub-box. The default value of -1 is treated the same as box.rank().