#include "tensorstore/array.h"
template <typename Element>
ArrayView<std::remove_reference_t<Element>, 0>
tensorstore::MakeScalarArrayView(Element&x);

Returns a rank-0 array that points to (but does not copy) the specified value.

Parameters:
Element &&x

A reference specifying the memory location to which the array will point.

Returns:

The strided array reference.

Note

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