Useful boolean type. [詳細]
#include <boolean.hpp>
Public メソッド | |
| boolean (bool value=false) | |
| Creates boolean variable with specified value. | |
| operator bool () const | |
| Converts boolean to built-in bool. | |
Private 変数 | |
| bool | value |
Useful boolean type.
Replacement of built-in bool type.
Features (Some advantages of boolean over bool) You can use boolean with std::vector!
| boolean::boolean | ( | bool | value = false |
) | [inline] |
Creates boolean variable with specified value.
This constructor is implicit, so you can write such as: boolean b = true;
| value | initial value |
| boolean::operator bool | ( | ) | const [inline] |
Converts boolean to built-in bool.
This conversion operator makes it possible to write boolean b1; bool b2 = b1;
bool boolean::value [private] |
1.7.1