siplasplas
A library for C++ reflection and introspection
|
Implements optimal-storage for a functor that will be used as member of a class. More...
#include <siplasplas/utility/memberfunctor.hpp>
Inherits F.
Protected Member Functions | |
template<typename... Args> | |
constexpr | MemberFunctor (Args &&... args) |
Initializes a member functor with the given arguments. | |
template<typename... Args> | |
decltype(auto) constexpr | invoke (Args &&... args) const |
Invokes the member functor with the given arguments. | |
template<typename... Args> | |
decltype(auto) constexpr | invoke (Args &&... args) |
Invokes the member functor with the given arguments. | |
constexpr const F & | get () const |
Returns a const reference to the functor object. | |
constexpr F & | get () |
Returns a reference to the member functor. | |
Implements optimal-storage for a functor that will be used as member of a class.
This class provides optimal storage for a functor instance that's supposed to be used as member of a class. The class is designed to be inherited from the user class which the functor member will belong to.
F | Functor type |