#include "tensorstore/data_type.h"
template <typename T = void>
using tensorstore::dtype_t = std::conditional_t<
    
std::is_void_v<T>,
    DataType,
    StaticDataType<CanonicalElementType<std::remove_cv_t<T>>>>;

Alias for the StaticDataType representing T if T is not void, or DataType if T is void.

Qualifiers of T are ignored, and additionally T is “canonicalized” according to CanonicalElementType.

Param T:

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