Cast the specified any to EnumRef.

Synopsis

Declared in <bdlar_anycastutil.h>

static
EnumRef
toEnumRef(AnyRef const& any);

Description

The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_ENUMERATION_CATEGORY.

Return Value

an EnumRef for the object referred to by any

Parameters

Name

Description

any

any reference to cast

Created with MrDocs