BloombergLP::bdlar::AnyCastUtil::toEnumConstRef

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

Synopsis

Declared in <bdlar_anycastutil.h>

static
EnumConstRef
toEnumConstRef(AnyConstRef const& any);