MWX_APIRET
API return value class that wraps 32-bit type. MSB (bit31) is a flag for failure or success. bit0..30 is used to store the return value.
constructor
The default constructor is constructed with a combination of false
and 0
.
It can also be explicitly constructed with bool
and uint32_t
types as parameters.
Since the constructor of type bool
is implemented, you can use true
/false
as follows.
Methods
is_success(), operator bool()
Return true
if 1
is set in MSB.
Return true
if MSB is 0
.
Obtain the value part of bit0..30.
最終更新