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 UnspecifiedBool<TestUtil_Guard>;

Type Aliases

Name

Description

BoolType

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

Static Member Functions

Name

Description

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.

Created with MrDocs