#include "tensorstore/array.h"
template <typename Indices>
  
requires IsCompatiblePartialIndexVector<static_rank, Indices>
ArrayView<Element,
         
 SubArrayStaticRank<static_rank, Indices>,
         
 array_origin_kind>
tensorstore::
    
Array<ElementTagType, Rank, OriginKind, LayoutContainerKind>::
    
operator[](const Indicesindices) const;

Returns a reference to the sub-array obtained by subscripting the first std::size(indices) dimensions.

For efficiency, the returned sub-array does not share ownership of the data and stores a view, rather than a copy, of the layout. To share ownership of the data, use the SharedSubArray free function instead.

Parameters:
const Indices &indices

A span-compatible index vector. May also be specified as a braced list, e.g. array[{1, 2}].

Dchecks:

ContainsPartial(domain(), indices)