Constructors
Declared in <bdlar_choiceref.h>
Create ChoiceRef object that type erases the supplied choice object.
template<class t_CHOICE>
explicit
ChoiceRef(t_CHOICE& choice)
requires IsChoice<t_CHOICE>::value;
» more...
Create ChoiceRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.
ChoiceRef(
void* objectAddress,
ChoiceVtable const* vtable);
» more...
| Name | Description |
|---|---|
| choice | choice object to wrap |
| objectAddress | address of the choice object to wrap |
| vtable | pointer to the vtable for the choice type |