[#BloombergLP-bdlat-EnumUtil-fromIntOrFallbackIfEnabled]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat.adoc[bdlat]::xref:BloombergLP/bdlat/EnumUtil.adoc[EnumUtil]::fromIntOrFallbackIfEnabled
:relfileprefix: ../../../
:mrdocs:

Load into the specified `result` the enumerator matching the specified `number` and return 0 if such an enumerator exists&period; Otherwise, if `result` supports a fallback enumerator, load into `result` the fallback enumerator value and return 0&period; Otherwise, return a non&hyphen;zero value with no effect on `result`&period; The behavior is undefined unless `TYPE` is a `bdlat` enumeration type&period;

== Synopsis

Declared in `&lt;bdlat&lowbar;enumutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
int
fromIntOrFallbackIfEnabled(
    TYPE* result,
    int number);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
