Halide
Halide::Internal::IsRoundtrippable< TO > Struct Template Reference

#include <Util.h>

Static Public Member Functions

template<typename FROM , typename TO2 = TO, typename std::enable_if<!std::is_convertible< FROM, TO >::value >::type * = nullptr>
constexpr static bool value (const FROM &from)
 
template<typename FROM , typename TO2 = TO, typename std::enable_if< std::is_convertible< FROM, TO >::value &&std::is_arithmetic< TO >::value &&std::is_arithmetic< FROM >::value &&!std::is_same< TO, FROM >::value >::type * = nullptr>
constexpr static bool value (const FROM &from)
 
template<typename FROM , typename TO2 = TO, typename std::enable_if< std::is_convertible< FROM, TO >::value &&!(std::is_arithmetic< TO >::value &&std::is_arithmetic< FROM >::value &&!std::is_same< TO, FROM >::value)>::type * = nullptr>
constexpr static bool value (const FROM &from)
 

Detailed Description

template<typename TO>
struct Halide::Internal::IsRoundtrippable< TO >

Definition at line 440 of file Util.h.

Member Function Documentation

◆ value() [1/3]

template<typename TO >
template<typename FROM , typename TO2 = TO, typename std::enable_if<!std::is_convertible< FROM, TO >::value >::type * = nullptr>
constexpr static bool Halide::Internal::IsRoundtrippable< TO >::value ( const FROM &  from)
inlinestaticconstexpr

Definition at line 442 of file Util.h.

◆ value() [2/3]

template<typename TO >
template<typename FROM , typename TO2 = TO, typename std::enable_if< std::is_convertible< FROM, TO >::value &&std::is_arithmetic< TO >::value &&std::is_arithmetic< FROM >::value &&!std::is_same< TO, FROM >::value >::type * = nullptr>
constexpr static bool Halide::Internal::IsRoundtrippable< TO >::value ( const FROM &  from)
inlinestaticconstexpr

Definition at line 447 of file Util.h.

References Halide::Internal::StaticCast< TO >::value().

◆ value() [3/3]

template<typename TO >
template<typename FROM , typename TO2 = TO, typename std::enable_if< std::is_convertible< FROM, TO >::value &&!(std::is_arithmetic< TO >::value &&std::is_arithmetic< FROM >::value &&!std::is_same< TO, FROM >::value)>::type * = nullptr>
constexpr static bool Halide::Internal::IsRoundtrippable< TO >::value ( const FROM &  from)
inlinestaticconstexpr

Definition at line 452 of file Util.h.


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