Lumiera  0.pre.03
»edit your freedom«
lib::meta::anonymous_namespace{function.hpp} Namespace Reference

Classes

struct  _DetectSingleArgFunction
 

Functions

template<class W , class TAR >
constexpr TAR * maybeInject (W &instance, InstancePlaceholder< TAR >)
 
template<class W , typename X >
constexpr X maybeInject (W &, X &&x)
 (default case: fall-through)
 

Class Documentation

◆ lib::meta::anonymous_namespace{function.hpp}::_DetectSingleArgFunction

struct lib::meta::anonymous_namespace{function.hpp}::_DetectSingleArgFunction
Class Members
typedef typename _Fun< FUN >::Sig Sig
typedef typename _Fun< Sig >::Head Arg
+ Collaboration diagram for _DetectSingleArgFunction< FUN >:

Function Documentation

◆ maybeInject()

constexpr TAR* lib::meta::anonymous_namespace{function.hpp}::maybeInject ( W &  instance,
InstancePlaceholder< TAR >   
)
inline

helper to detect an InstancePlaceholder

Returns
an instance-pointer, statically casted to the marked target type.

Definition at line 293 of file function.hpp.