Quick Links: |
#include <bdlf_memfn.h>
Static Public Member Functions | |
static OBJTYPE & | derefImp (OBJTYPE &obj, bsl::false_type *) |
template<class TYPE > | |
static OBJTYPE & | derefImp (TYPE &obj, bsl::true_type *) |
template<class TYPE > | |
static OBJTYPE & | derefImp (const TYPE &obj, bsl::true_type *) |
template<class TYPE > | |
static OBJTYPE & | deref (TYPE &obj) |
template<class TYPE > | |
static OBJTYPE & | deref (const TYPE &obj) |
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 <code>OBJTYPE</code>"), the result of *OBJECT
is returned, where OBJECT
is the pointer or object reference.
static OBJTYPE& bdlf::MemFn_Dereference< OBJTYPE >::derefImp | ( | OBJTYPE & | obj, | |
bsl::false_type * | ||||
) | [inline, static] |
Referenced by bdlf::MemFn_Dereference< OBJTYPE >::deref().
static OBJTYPE& bdlf::MemFn_Dereference< OBJTYPE >::derefImp | ( | TYPE & | obj, | |
bsl::true_type * | ||||
) | [inline, static] |
static OBJTYPE& bdlf::MemFn_Dereference< OBJTYPE >::derefImp | ( | const TYPE & | obj, | |
bsl::true_type * | ||||
) | [inline, static] |
static OBJTYPE& bdlf::MemFn_Dereference< OBJTYPE >::deref | ( | TYPE & | obj | ) | [inline, static] |
References bdlf::MemFn_Dereference< OBJTYPE >::derefImp().
Referenced by bdlf::MemFn< PROTOTYPE >::operator()().
static OBJTYPE& bdlf::MemFn_Dereference< OBJTYPE >::deref | ( | const TYPE & | obj | ) | [inline, static] |
References bdlf::MemFn_Dereference< OBJTYPE >::derefImp().