[#BloombergLP-bdlat-EnumUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat.adoc[bdlat]::EnumUtil :relfileprefix: ../../ :mrdocs: This `struct` provides a namespace for functions that decode `bdlat` "enumerations" from integral and string representations, possibly to the "fallback" value (if one exists). == Synopsis Declared in `<bdlat_enumutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct EnumUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlat/EnumUtil/fromIntOrFallbackIfEnabled.adoc[`fromIntOrFallbackIfEnabled`] | Load into the specified `result` the enumerator matching the specified `number` and return 0 if such an enumerator exists. Otherwise, if `result` supports a fallback enumerator, load into `result` the fallback enumerator value and return 0. Otherwise, return a non‐zero value with no effect on `result`. The behavior is undefined unless `TYPE` is a `bdlat` enumeration type. | xref:BloombergLP/bdlat/EnumUtil/fromStringOrFallbackIfEnabled.adoc[`fromStringOrFallbackIfEnabled`] | Load into the specified `result` the enumerator matching the specified `string` of the specified `stringLength` and return 0 if such an enumerator exists. Otherwise, if `result` supports a fallback enumerator, load into `result` the fallback enumerator value and return 0. Otherwise, return a non‐zero value with no effect on `result`. The behavior is undefined unless `TYPE` is a `bdlat` enumeration type. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#