|
#include <pantheios/inserters/boolean.hpp>
Consider the following statement:
char s[] = "abc"; std::string str("def"); bool b = false; pantheios::log(pantheios::notice, "s=", s, ", b=", pantheios::boolean(b), ", str=", str);
This will produce the output:
s=abc, b=false, str=def
Construction | |
boolean (bool value) | |
Construct from a pointer, with width/format specifier. | |
Public Types | |
Member Types | |
typedef boolean | class_type |
Public Member Functions | |
Accessors | |
pan_char_t const * | data () const |
A possibly non-nul-terminated non-null pointer to the c-style string representation of the integer. | |
pan_char_t const * | c_str () const |
A nul-terminated non-null pointer to the c-style string representation of the integer. | |
size_t | length () const |
The length of the c-style string representation of the integer. | |
Static Public Member Functions | |
Control | |
static void | set_value_strings (pan_char_t const *falseName, pan_char_t const *trueName) |
boolean | ( | bool | value | ) | [inline, explicit] |
pan_char_t const* data | ( | ) | const [inline] |
pan_char_t const* c_str | ( | ) | const [inline] |
size_t length | ( | ) | const [inline] |
The length of the c-style string representation of the integer.
|
|
pantheios Library documentation © Matthew Wilson & Synesis Software, 2006-2011 |