Constructors
Declared in <bdlar_enumref.h>
Create an EnumRef object that type erases the supplied enumeration object.
template<class t_ENUM>
explicit
EnumRef(t_ENUM& enumeration)
requires IsEnum<t_ENUM>::value;
» more...
Create an EnumRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.
EnumRef(
void* objectAddress,
EnumVtable const* vtable);
» more...
| Name | Description |
|---|---|
| enumeration | enumeration object to wrap |
| objectAddress | address of the enumeration object to wrap |
| vtable | pointer to the vtable for the enumeration type |