jaulib v1.3.0
Jau Support Library (C++, Java, ..)
|
func::member_target_t implementation for class member functions, identifiable as func::target_type::member via jau::function<R(A...)>::type(). More...
#include <functional.hpp>
Public Types | |
typedef delegate_t< R, A... > | delegate_type |
Static Public Member Functions | |
static delegate_type | delegate (C1 *base, R(C0::*method)(A...), std::enable_if_t< std::is_base_of_v< C0, C1 >, bool >=true) noexcept |
Construct a delegate_t<R, A...> instance from given this base-pointer and member-function. More... | |
func::member_target_t implementation for class member functions, identifiable as func::target_type::member via jau::function<R(A...)>::type().
R | function return type |
C0 | class type holding the member-function |
C1 | class derived from C0 or C0 of this base-pointer used to invoke the member-function |
A | function arguments |
Definition at line 783 of file functional.hpp.
typedef delegate_t<R, A...> jau::func::member_target_t< R, C0, C1, A >::delegate_type |
Definition at line 785 of file functional.hpp.
|
inlinestaticnoexcept |
Construct a delegate_t<R, A...> instance from given this base-pointer and member-function.
This factory function is only enabled if C0 is base of C1.
base | this base-pointer of class C1 derived from C0 or C0 used to invoke the member-function |
method | member-function of class C0 |
Definition at line 865 of file functional.hpp.