Quick Links: |
#include <bsltf_movestate.h>
Public Types | |
enum | Enum { e_NOT_MOVED, e_MOVED, e_UNKNOWN } |
Enumeration of move state. More... | |
Static Public Member Functions | |
static const char * | toAscii (MoveState::Enum value) |
static const char* bsltf::MoveState::toAscii | ( | MoveState::Enum | value | ) | [static] |
Return the non-modifiable string representation corresponding to the specified enumeration value
, if it exists, and a unique (error) string otherwise. The string representation of value
matches its corresponding enumerator name with the "e_" prefix elided. For example:
bsl::cout << MoveState::toAscii(MoveState::e_MOVED);
will print the following on standard output:
MOVED
Note that specifying a value
that does not match any of the enumerators will result in a string representation that is distinct from any of those corresponding to the enumerators, but is otherwise unspecified.
Referenced by bsltf::debugprint().