-
#include "tensorstore/data_type.h" -
template <typename T>
constexpr auto tensorstore::dtype_v = dtype_t<T>(); Data type object representing the data type for
T, convertible toDataType.If
Tisvoid, equal toDataType()(representing an unknown data type).Otherwise, equal to
StaticDataType<U>(), whereUis obtained fromTby striping cv-qualifiers and applyingCanonicalElementType.- Param T:¶
C++ element type for which to obtain the corresponding data type. Any const/volatile qualifiers are ignored.