This local class wraps an object used to invoke a bound member function.

Synopsis

Declared in <bdlf_bind.h>

template<class t_TYPE>
class Bind_MemFnObjectWrapper;

Description

In explicit binding, the argument types of operator() are determined during Bind instantiation. If a member function is bound and the object is passed as an invocation argument, the exact type of the object — whether it is a pointer or reference — cannot be determined from the method signature. This wrapper serves as an intermediate type around the object pointer or reference and is declared to have pointer semantics so MemFn can dereference it.

Member Functions

Name

Description

Bind_MemFnObjectWrapper [constructor]

Constructors

operator*

Returns a reference to the object (of parameterized TYPE) pointed to by this Bind_MemFnObjectWrapper.

operator BloombergLP::bslmf::NestedTraitDeclaration<Bind_MemFnObjectWrapper, HasPointerSemantics>

Declare that this type has pointer semantics.

operator BloombergLP::bslmf::NestedTraitDeclaration<Bind_MemFnObjectWrapper, IsBitwiseMoveable>

Declare that this type is bitwise moveable.

Created with MrDocs