Skip to content

EnumDefinition

Raymond Chen edited this page May 14, 2019 · 3 revisions

A xlang::meta::reader::EnumDefinition structure provides assistance in accessing fields of an enumeration.

Call the TypeDef::get_enum_definition method to obtain an EnumDefinition.

An EnumDefinition is valid only as long as its corresponding TypeDef is valid.

Methods

get_enumerator

xlang::meta::reader::Field get_enumerator(std::string_view const& name) const;

Find a field in the enumeration with the specified name. The search is case-sensitive.

It is an error to call this method with a name that is not a valid field.

Clone this wiki locally