BloombergLP::bdlar::EnumConstRef::EnumConstRef

Constructors

Synopses

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...

Parameters

NameDescription
objectnon-const enumeration reference to rewrap as const
enumerationenumeration object to wrap
objectAddressaddress of the enumeration object to wrap
vtablepointer to the const vtable for the enumeration type