Determines if the type T implements a call operator with arbitrary signature.
More...
#include <type_traits.hh>
|
static constexpr bool | value = (sizeof(f< Derived >(nullptr)) == 1) |
|
|
template<typename S > |
static constexpr True & | f (...) |
|
template<typename S > |
static constexpr False & | f (Check< void(Fallback::*)(), &S::operator()> *) |
|
template<typename T>
class Utopia::Utils::is_callable< T, std::void_t< std::enable_if_t< std::is_class_v< std::decay_t< T > >, T > > >
Determines if the type T implements a call operator with arbitrary signature.
- Template Parameters
-
◆ False
template<typename T >
typedef char Utopia::Utils::is_callable< T, std::void_t< std::enable_if_t< std::is_class_v< std::decay_t< T > >, T > > >::False[2] |
|
private |
◆ True
◆ f() [1/2]
template<typename T >
template<typename S >
◆ f() [2/2]
template<typename T >
template<typename S >
static constexpr False& Utopia::Utils::is_callable< T, std::void_t< std::enable_if_t< std::is_class_v< std::decay_t< T > >, T > > >::f |
( |
Check< void(Fallback::*)(), &S::operator()> * |
| ) |
|
|
staticconstexprprivate |
◆ value
template<typename T >
constexpr bool Utopia::Utils::is_callable< T, std::void_t< std::enable_if_t< std::is_class_v< std::decay_t< T > >, T > > >::value = (sizeof(f< Derived >(nullptr)) == 1) |
|
staticconstexpr |
The documentation for this class was generated from the following file: