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

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.

Specializations

Name

Description

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.

Created with MrDocs