BloombergLP::bdlar::AnyCastUtil::toEnumRef

Cast the specified any to EnumRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_ENUMERATION_CATEGORY.

Synopsis

Declared in <bdlar_anycastutil.h>

static
EnumRef
toEnumRef(AnyRef const& any);