#include <SafeBool.h>
Inheritance diagram for zypp::base::SafeBool< _Derived >:
Public Types | |
typedef safebool_detail::SafeBoolBase::bool_type | bool_type |
Public Member Functions | |
operator bool_type () const | |
Protected Member Functions | |
~SafeBool () |
_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 ==/!=.class Foo : protected base::SafeBool<Foo> { public: using base::SafeBool<Foo>::operator bool_type; private: friend SafeBool<TT>::operator bool_type() const; bool boolTest() const { // Perform Boolean logic here } };
Definition at line 70 of file SafeBool.h.
|
Reimplemented from zypp::base::safebool_detail::SafeBoolBase. Reimplemented in zypp::bit::BitField< _IntT >. Definition at line 72 of file SafeBool.h. |
|
Definition at line 80 of file SafeBool.h. |
|
Definition at line 73 of file SafeBool.h. |