BloombergLP::bdlf::Overloaded_ConstMemberFunctionPointer

The class Overloaded_ConstMemberFunctionPointer wraps a member function pointer. It is implicitly constructible from the pointer, and provides an operator() that takes an object of the appropriate type and other arguments, and forwards them on to the underlying function.

Synopsis

Declared in <bdlf_overloaded.h>

template<
    class OBJ,
    class RET,
    class... ARGS>
struct Overloaded_ConstMemberFunctionPointer;

Type Aliases

NameDescription
FpType Alias for a member function pointer of the given signature.

Member Functions

NameDescription
Overloaded_ConstMemberFunctionPointer [constructor]Construct this object from the specified f.
operator() Call the member function passed to the constructor using the specified obj with the specified args, and return the result of the call.

Data Members

NameDescription
d_fp Member function pointer of the given signature.