Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
has_FunctionOperator< FUN > Class Template Reference

#include "lib/meta/util.hpp"

Description

template<typename FUN>
class lib::meta::has_FunctionOperator< FUN >

Trait template to detect presence of a simple function call operator.

Note
this metafunction fails to detect an overloaded or templated operator()

Definition at line 220 of file meta/util.hpp.

Classes

struct  Probe
 

Static Public Attributes

static const bool value = (sizeof(Yes_t)==sizeof(check<FUN>(0)))
 

Static Private Member Functions

template<class X >
static Yes_t check (Probe< X > *)
 
template<class >
static No_t check (...)
 

Class Documentation

◆ lib::meta::has_FunctionOperator::Probe

struct lib::meta::has_FunctionOperator::Probe
+ Collaboration diagram for has_FunctionOperator< FUN >::Probe< FF, SEL >:

Member Function Documentation

◆ check() [1/2]

template<typename FUN >
template<class X >
static Yes_t check ( Probe< X > *  )
staticprivate

◆ check() [2/2]

template<typename FUN >
template<class >
static No_t check (   ...)
staticprivate

Member Data Documentation

◆ value

template<typename FUN >
const bool value = (sizeof(Yes_t)==sizeof(check<FUN>(0)))
static

Definition at line 233 of file meta/util.hpp.

+ Collaboration diagram for has_FunctionOperator< FUN >:

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