Constructors

Synopses

Declared in <bdlar_choiceref.h>

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

ChoiceRef(
    void* objectAddress,
    ChoiceVtable const* vtable);

Create ChoiceRef object that type erases the supplied choice object.

template<class t_CHOICE>
explicit
ChoiceRef(
    t_CHOICE& choice,
    void* = 0)
requires IsChoice<t_CHOICE>::value;

Created with MrDocs