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

#include <Util.h>

Static Public Member Functions

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

Detailed Description

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

Definition at line 424 of file Util.h.

Member Function Documentation

◆ value() [1/2]

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

Definition at line 426 of file Util.h.

Referenced by Halide::Internal::IsRoundtrippable< TO >::value().

◆ value() [2/2]

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

Definition at line 431 of file Util.h.


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