Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
FunErasure< FH > Struct Template Reference

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

Description

template<class FH>
struct lib::meta::FunErasure< FH >

Generic wrapper carrying a function object while hiding the actual function signature.

  • create it using a function ref or pointer
  • the StoreFunction-policy also allows creation based on an existing function object
  • re-access the functor or function ref using the templated getFun()
Parameters
FHpolicy to control the implementation. In most cases, you should use "StoreFunction"
Note
not statically typesafe. Depending on the specified policy, it might be run-time typesafe.

Definition at line 80 of file function-erasure.hpp.

Public Member Functions

template<typename FUN >
 FunErasure (FUN const &functor)
 

Friends

bool operator!= (FunErasure const &fer1, FunErasure const &fer2)
 

Constructor & Destructor Documentation

◆ FunErasure()

template<class FH >
template<typename FUN >
FunErasure ( FUN const functor)
inline

Definition at line 84 of file function-erasure.hpp.

Friends And Related Symbol Documentation

◆ operator!=

template<class FH >
bool operator!= ( FunErasure< FH > const fer1,
FunErasure< FH > const fer2 
)
friend

Definition at line 89 of file function-erasure.hpp.

+ Inheritance diagram for FunErasure< FH >:
+ Collaboration diagram for FunErasure< FH >:

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