Lumiera  0.pre.03
»edit your freedom«
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 89 of file function-erasure.hpp.

Public Member Functions

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

Friends

bool operator!= (FunErasure const &fer1, FunErasure const &fer2)
 
+ Inheritance diagram for FunErasure< FH >:
+ Collaboration diagram for FunErasure< FH >:

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