|
BDE 4.39.x Production Release
|
#include <bsls_unspecifiedbool.h>
This class provides a member, d_member, whose pointer-to-member may be used as an "unspecified boolean type" for implicit conversion operators.
Public Types | |
| typedef int UnspecifiedBool::* | BoolType |
Static Public Member Functions | |
| static BoolType | falseValue () |
| static BoolType | trueValue () |
| static BoolType | makeValue (bool predicate) |
| typedef int UnspecifiedBool::* bsls::UnspecifiedBool< BSLS_HOST_TYPE >::BoolType |
Alias of a distinct type that is implicitly convertible to bool, but does not promote to int.
|
inlinestatic |
Return a value that converts to the bool value false.
|
inlinestatic |
Return a value that converts to the bool value true if the specified predicate is true, and the bool value false otherwise.
|
inlinestatic |
Return a value that converts to the bool value true.