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