Constructors

Synopses

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;

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

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

Parameters

Name

Description

choice

choice object to wrap

objectAddress

address of the choice object to wrap

vtable

pointer to the vtable for the choice type

Created with MrDocs