xtd 0.2.0
Loading...
Searching...
No Matches

◆ boolean_object

using xtd::boolean_object = typedef box<bool>

Represent a boxed bool.

Header
#include <xtd/boolean_object>
Namespace
xtd
Library
xtd.core
Examples
The following example shows how to create and use xtd::boolean_object.
auto stringer = [](const object& value) {return value.to_string();};
bool unboxed_object = true;
boolean_object boxed_object = unboxed_bool;
auto result = stringer(boxed_object);
console::write_line("result = {}", result); // Display: result = true;
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
box< bool > boolean_object
Represent a boxed bool.
Definition boolean_object.h:29