BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlf::MemFn_Dereference< OBJTYPE > Struct Template Reference

#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)
 

Detailed Description

template<class OBJTYPE>
struct bdlf::MemFn_Dereference< OBJTYPE >

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.

Member Function Documentation

◆ deref() [1/2]

template<class OBJTYPE >
template<class TYPE >
static OBJTYPE & bdlf::MemFn_Dereference< OBJTYPE >::deref ( const TYPE &  obj)
inlinestatic

◆ deref() [2/2]

template<class OBJTYPE >
template<class TYPE >
static OBJTYPE & bdlf::MemFn_Dereference< OBJTYPE >::deref ( TYPE &  obj)
inlinestatic

◆ derefImp() [1/3]

template<class OBJTYPE >
template<class TYPE >
static OBJTYPE & bdlf::MemFn_Dereference< OBJTYPE >::derefImp ( const TYPE &  obj,
bsl::true_type  
)
inlinestatic

◆ derefImp() [2/3]

template<class OBJTYPE >
static OBJTYPE & bdlf::MemFn_Dereference< OBJTYPE >::derefImp ( OBJTYPE &  obj,
bsl::false_type  
)
inlinestatic

◆ derefImp() [3/3]

template<class OBJTYPE >
template<class TYPE >
static OBJTYPE & bdlf::MemFn_Dereference< OBJTYPE >::derefImp ( TYPE &  obj,
bsl::true_type  
)
inlinestatic

The documentation for this struct was generated from the following file: