BloombergLP::bdlf::MemFn_Dereference

Utility that converts values to references to OBJTYPE.

Synopsis

Declared in <bdlf_memfn.h>

template<class OBJTYPE>
struct MemFn_Dereference;

Description

This utility is used to convert user supplied values to references to OBJTYPE for object references that are directly convertible to OBJTYPE, the reference is returned directly. For pointers and objects that are not directly convertible (e.g., "smart pointers to OBJTYPE"), the result of *OBJECT is returned, where OBJECT is the pointer or object reference.

Static Member Functions

NameDescription
deref Return a reference to the specified obj.
derefImp derefImp overloads