Turi Create  4.0
turi::type_to_enum< T > Struct Template Reference

#include <core/data/flexible_type/flexible_type_base_types.hpp>

Detailed Description

template<typename T>
struct turi::type_to_enum< T >

Identifies the flex_type_enum representing the type, All other non-matching types will return UNDEFINED.

type_to_enum<T>::value is the corresponding enumeration value in flex_type_enum if T matches exactly one of the flexible_type content types. type_to_enum<T>::value is flex_type_enum::UNDEFINED otherwise.

This is very useful for SFINAE operations.

Example: The following lines will both return flex_type_enum::INTEGER

(flex_type_enum) type_to_enum<flex_int>
type_to_enum<flex_int>::value

Definition at line 499 of file flexible_type_base_types.hpp.


The documentation for this struct was generated from the following file: