Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
AdaptInvokable< ARGS > Struct Template Reference

#include "lib/meta/function-closure.hpp"

Description

template<typename... ARGS>
struct lib::meta::func::anonymous_namespace{function-closure.hpp}::AdaptInvokable< ARGS >

Helper to package a given invokable, so that it has a well defined function signature.

Warning
defined argument types must be suitable.
Remarks
need to define the wrapper functor class explicitly, to be able to work around any const / non-const cases; we can not overload operator() because then decltype(operator()) would be ambiguous, breaking the detection of the function signature.

Definition at line 190 of file function-closure.hpp.

Static Public Member Functions

template<class FUN >
static auto buildWrapper (FUN &&fun)
 

Member Function Documentation

◆ buildWrapper()

template<typename... ARGS>
template<class FUN >
static auto buildWrapper ( FUN &&  fun)
inlinestatic

Definition at line 194 of file function-closure.hpp.

+ Collaboration diagram for AdaptInvokable< ARGS >:

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