BloombergLP::bdlar::ChoiceConstRef::ChoiceConstRef

Constructors

Synopses

Declared in <bdlar_choiceref.h>

Create ChoiceConstRef object that wraps the same object as the specified object.

ChoiceConstRef(ChoiceRef const& object);
» more...

Create ChoiceConstRef object that type erases the supplied choice object.

template<class t_CHOICE>
explicit
ChoiceConstRef(t_CHOICE const& choice)
requires IsChoice<t_CHOICE>::value;
» more...

Create ChoiceConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

ChoiceConstRef(
    void const* objectAddress,
    ChoiceConstVtable const* vtable);
» more...

Parameters

NameDescription
objectnon-const choice reference to rewrap as const
choicechoice object to wrap
objectAddressaddress of the choice object to wrap
vtablepointer to the const vtable for the choice type