#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 to DataType.

If T is void, equal to DataType() (representing an unknown data type).

Otherwise, equal to StaticDataType<U>(), where U is obtained from T by striping cv-qualifiers and applying CanonicalElementType.

Param T:

C++ element type for which to obtain the corresponding data type. Any const/volatile qualifiers are ignored.