memFn overloads

Synopses

Declared in <bdlf_memfn.h>

Return a MemFn wrapper for the specified func.

template<class PROTOTYPE>
static
MemFn<PROTOTYPE>
memFn(PROTOTYPE func);

Return a MemFnInstance wrapper for the specified func and object.

template<
    class PROTOTYPE,
    class INSTANCE>
static
MemFnInstance<PROTOTYPE, INSTANCE>
memFn(
    PROTOTYPE func,
    INSTANCE const& object);

Return Value

  • MemFn wrapper encapsulating func

  • MemFnInstance wrapper encapsulating func and object

Parameters

Name

Description

func

member function pointer to wrap

object

instance on which the member function is invocable

Created with MrDocs