siplasplas
A library for C++ reflection and introspection
cpp::MemberFunctor< F, Ebo > Class Template Reference

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.
 

Detailed Description

template<typename F, bool Ebo = IsEboCandidate<F>::value>
class cpp::MemberFunctor< F, Ebo >

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.

template<typename T, typename Alloc = std::allocator<T>>
class Vector : MemberFunction<Alloc>
{
using Allocator = MemberFunction<Alloc>;
};
Template Parameters
FFunctor type

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