BloombergLP::bdlar::bdlat_enumFromInt

Assign the enumerator value matching the specified number to the specified result. Return 0 on success, and a non-zero value with no effect on the object if number does not match any enumerator.

Synopsis

Declared in <bdlar_enumref.h>

int
bdlat_enumFromInt(
    EnumRef* result,
    int number);