-
#include "tensorstore/data_type.h"
-
template <typename T = void>
std::shared_ptr<T> tensorstore::AllocateAndConstructShared(
ptrdiff_t n,
ElementInitialization initialization = default_init,
dtype_t<T> r = dtype_v<T>); Returns a shared_ptr that manages the memory returned by
AllocateAndConstruct
.