BloombergLP::bdlf::MemFn_Dereference::derefImp

derefImp overloads

Synopses

Declared in <bdlf_memfn.h>

Return a reference to the specified obj when it does not have pointer semantics.

static
OBJTYPE&
derefImp(
    OBJTYPE& obj,
    bsl::false_type* tag);
» more...

Dereference the specified obj when it has pointer semantics.

template<class TYPE>
static
OBJTYPE&
derefImp(
    TYPE& obj,
    bsl::true_type* tag);
» more...

Dereference the specified obj when it has pointer semantics.

template<class TYPE>
static
OBJTYPE&
derefImp(
    TYPE const& obj,
    bsl::true_type* tag);
» more...

Return Value

  • reference to obj
  • reference obtained by dereferencing obj

Parameters

NameDescription
objobject to return by reference
tagtag indicating the object does not have pointer semantics