libzypp
11.13.5
|
Validate objects in a boolean context without harmful side effects. More...
#include <SafeBool.h>
Public Member Functions | |
operator bool_type () const |
Protected Member Functions | |
~SafeBool () |
Additional Inherited Members |
Validate objects in a boolean context without harmful side effects.
Uses CRTP to avoid a virtual function. _Derived
must provide bool boolTest() const
preformong the test.
Foo
, based on the bool_type values. Make shure you overload both operators, in case an other semantic is desired for ==/!=.Definition at line 70 of file SafeBool.h.
|
inlineprotected |
Definition at line 80 of file SafeBool.h.
|
inline |
Definition at line 73 of file SafeBool.h.