1#ifndef LIBPRESSIO_DTYPE_CPP
2#define LIBPRESSIO_DTYPE_CPP
4#include <std_compat/type_traits.h>
14 template <
class T,
class... Ts>
15 struct is_one_of :
public compat::disjunction<std::is_same<T,Ts>...> {
23 static_assert(
sizeof(size_t) <= 8,
"unexpected type");
43 static_assert(
impl::is_one_of<T,double, float, bool, int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t, uint64_t, size_t, char, unsigned char>::value,
constexpr pressio_dtype pressio_dtype_from_type()
Definition: dtype.h:42
constexpr pressio_dtype pressio_size_type()
Definition: dtype.h:22
Information on types used by libpressio.
pressio_dtype
Definition: pressio_dtype.h:16
@ pressio_byte_dtype
Definition: pressio_dtype.h:27
@ pressio_bool_dtype
Definition: pressio_dtype.h:28
@ pressio_double_dtype
Definition: pressio_dtype.h:17
@ pressio_int16_dtype
Definition: pressio_dtype.h:24
@ pressio_uint64_dtype
Definition: pressio_dtype.h:22
@ pressio_float_dtype
Definition: pressio_dtype.h:18
@ pressio_uint16_dtype
Definition: pressio_dtype.h:20
@ pressio_int64_dtype
Definition: pressio_dtype.h:26
@ pressio_int8_dtype
Definition: pressio_dtype.h:23
@ pressio_uint8_dtype
Definition: pressio_dtype.h:19
@ pressio_uint32_dtype
Definition: pressio_dtype.h:21
@ pressio_int32_dtype
Definition: pressio_dtype.h:25