-
#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.
Note
The caller is responsible for ensuring that the returned array is not used after the reference
x
becomes invalid.