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

Dereference the specified obj when it has pointer semantics.

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

Dereference the specified obj when it has pointer semantics.

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

Return Value

  • reference to obj

  • reference obtained by dereferencing obj

Parameters

Name

Description

obj

object to return by reference

tag

tag indicating the object does not have pointer semantics

Created with MrDocs