Zth (libzth)
Loading...
Searching...
No Matches
zth::has_call_operator< T > Struct Template Reference

#include <async.h>

Public Types

enum  { value = sizeof(test<T>(nullptr)) == sizeof(yes) }
 
typedef char yes
 
typedef long no
 

Static Public Member Functions

template<typename C >
static yes test (decltype(&C::operator()) *)
 
template<typename >
static no test (...)
 

Detailed Description

template<typename T>
struct zth::has_call_operator< T >

Definition at line 1243 of file async.h.

Member Typedef Documentation

◆ no

template<typename T >
typedef long zth::has_call_operator< T >::no

Definition at line 1245 of file async.h.

◆ yes

template<typename T >
typedef char zth::has_call_operator< T >::yes

Definition at line 1244 of file async.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum
Enumerator
value 

Definition at line 1253 of file async.h.

Member Function Documentation

◆ test() [1/2]

template<typename T >
template<typename >
static no zth::has_call_operator< T >::test (   ...)
static

◆ test() [2/2]

template<typename T >
template<typename C >
static yes zth::has_call_operator< T >::test ( decltype(&::operator  )
static

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