-
#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 Indices& indices) 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.