[#BloombergLP-bdlar-bdlat_enumFromInt] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::bdlat_enumFromInt :relfileprefix: ../../ :mrdocs: Assign the enumerator value matching the specified `number` to the specified `result`. == Synopsis Declared in `<bdlar_enumref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int bdlat_enumFromInt( xref:BloombergLP/bdlar/EnumRef.adoc[EnumRef]* result, int number); ---- == Description Return 0 on success, and a non‐zero value with no effect on the object if `number` does not match any enumerator. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *result* | enumeration reference to receive the value | *number* | integer enumerator identifier to assign |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#