A wrapper for bool to get the correct streaming ("true"/"false"). More...
#include <config_attribute_value.hpp>
Public Member Functions | |
true_false (bool value=false) | |
operator bool () const | |
const std::string & | str () const |
Private Attributes | |
bool | value_ |
A wrapper for bool to get the correct streaming ("true"/"false").
Most visitors can simply treat this as bool.
Definition at line 59 of file config_attribute_value.hpp.
|
inlineexplicit |
Definition at line 63 of file config_attribute_value.hpp.
|
inline |
Definition at line 64 of file config_attribute_value.hpp.
References value_.
|
inline |
Definition at line 66 of file config_attribute_value.hpp.
References config_attribute_value::s_false, and config_attribute_value::s_true.
Referenced by config_attribute_value::operator std::string(), config_attribute_value::operator!=(), config_attribute_value::string_visitor::operator()(), config_attribute_value::operator=(), and config_attribute_value::operator==().
|
private |
Definition at line 61 of file config_attribute_value.hpp.
Referenced by operator bool(), and config_attribute_value::yes_no::operator bool().