#include "tensorstore/array.h"
template <typename Source>
auto tensorstore::MakeArrayView(Source&source);

Returns a rank-1 array that references (but does not copy) the specified span-compatible array/container.

Parameters:
Source &&source

The source to be converted to a span.

Returns:

A contiguous c_order array referencing the contents of source.

Note

The caller is responsible for ensuring that the returned array is not used after source becomes invalid.