Constructors
Synopses
Declared in <bdlar_choiceref.h>
Create ChoiceConstRef object that wraps the same object as the specified object.
ChoiceConstRef(ChoiceRef const& object);
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;
Create ChoiceConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.
ChoiceConstRef(
void const* objectAddress,
ChoiceConstVtable const* vtable);
Parameters
Name |
Description |
object |
non‐const choice reference to rewrap as const |
choice |
choice object to wrap |
objectAddress |
address of the choice object to wrap |
vtable |
pointer to the const vtable for the choice type |
Created with MrDocs