type#

group Type

Typedefs

template<Type::Code CODE>
using type_of_t = typename type_of_detail::type_of<CODE>::type#

A template that converts type codes to types.

Variables

template<typename T>
Type::Code type_code_of_v = type_code_of_detail::type_code_of<T>::value#

A template constexpr that converts types to type codes.

template<typename T>
Type::Code type_code_of = type_code_of_v<T>#
template<Type::Code CODE>
struct is_integral : public std::is_integral<type_of_t<CODE>>#
#include <legate/type/type_traits.h>

A predicate that holds if the type code is of an integral type.

template<Type::Code CODE>
struct is_signed : public std::is_signed<type_of_t<CODE>>#
#include <legate/type/type_traits.h>

A predicate that holds if the type code is of a signed integral type.

template<>
struct is_signed<Type::Code::FLOAT16> : public std::is_signed<type_of_t<CODE>>, public std::true_type#
template<Type::Code CODE>
struct is_unsigned : public std::is_unsigned<type_of_t<CODE>>#
#include <legate/type/type_traits.h>

A predicate that holds if the type code is of an unsigned integral type.

template<Type::Code CODE>
struct is_floating_point : public std::is_floating_point<type_of_t<CODE>>#
#include <legate/type/type_traits.h>

A predicate that holds if the type code is of a floating point type.

template<>
struct is_floating_point<Type::Code::FLOAT16> : public std::is_floating_point<type_of_t<CODE>>, public std::true_type#
template<Type::Code CODE>
struct is_complex : public std::false_type#
#include <legate/type/type_traits.h>

A predicate that holds if the type code is of a complex type.

template<>
struct is_complex<Type::Code::COMPLEX64> : public std::false_type, public std::true_type#
template<>
struct is_complex<Type::Code::COMPLEX128> : public std::false_type, public std::true_type#
template<typename T>
struct is_complex_type : public std::false_type#
#include <legate/type/type_traits.h>

A predicate that holds if the type is one of the supported complex types.

template<>
struct is_complex_type<complex<float>> : public std::false_type, public std::true_type#
template<>
struct is_complex_type<complex<double>> : public std::false_type, public std::true_type#
namespace type_of_detail#