[#BloombergLP-bdlar-bdlat_enumFromInt]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::bdlat&lowbar;enumFromInt
:relfileprefix: ../../
:mrdocs:

Assign the enumerator value matching the specified `number` to the specified `result`&period; Return 0 on success, and a non&hyphen;zero value with no effect on the object if `number` does not match any enumerator&period;

== Synopsis

Declared in `&lt;bdlar&lowbar;enumref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
bdlat&lowbar;enumFromInt(
    xref:BloombergLP/bdlar/EnumRef.adoc[EnumRef]* result,
    int number);
----


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