BloombergLP::bsls::UnspecifiedBool

This class provides a member, d_member, whose pointer-to-member may be used as an "unspecified boolean type" for implicit conversion operators.

Synopsis

Declared in <bsls_unspecifiedbool.h>

template<class BSLS_HOST_TYPE>
class UnspecifiedBool;

Type Aliases

NameDescription
BoolType Alias of a distinct type that is implicitly convertible to bool, but does not promote to int.

Static Member Functions

NameDescription
falseValue Return a value that converts to the bool value false.
makeValue Return a value that converts to the bool value true if the specified predicate is true, and the bool value false otherwise.
trueValue Return a value that converts to the bool value true.

Specializations

NameDescription
UnspecifiedBool<TestUtil_Guard> This class provides a member, d_member, whose pointer-to-member may be used as an "unspecified boolean type" for implicit conversion operators.