|
BDE 4.14.0 Production release
|
Provide an exposition-only concept boolean-testable.
boolean-testable conceptThis component provides a concept, bslmf::BooleanTestable, that specifies the requirements on expressions that are convertible to bool and for which the logical operators have the conventional semantics. For more details, please refer to [concept.booleantestable] in the ISO C++20 Standard.
This section illustrates intended use of this component.
In the following example we use bslmf::BooleanTestable to implement a concept to determine whether applying the < operator to a given type produces an if-testable result.
Now types can be tested using this concept: