#include "blocxx/BLOCXX_config.h"Go to the source code of this file.
Namespaces | |
| namespace | BLOCXX_NAMESPACE |
Defines | |
| #define | BLOCXX_SAFE_BOOL_IMPL(classname, type, variable, test) |
| #define BLOCXX_SAFE_BOOL_IMPL | ( | classname, | |||
| type, | |||||
| variable, | |||||
| test | ) |
Value:
typedef type classname::*safe_bool; \ operator safe_bool () const \ { \ return (test) ? &variable : 0; \ } \ bool operator !() const \ { \ return !(test); \ }
Definition at line 58 of file SafeBool.hpp.
1.5.6