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

◆ single_object

using xtd::single_object = typedef box_floating_point<float>

Represent a boxed single.

Namespace
xtd
Library
xtd.core
Remarks
For more information about types, see Native types, boxing and unboxing.
Examples
The following example shows how to create and use xtd::single_object.
auto stringer = [](const object& value) {return value.to_string();};
float unboxed_object = 3.14f;
single_object boxed_object = unboxed_object;
auto result = stringer(boxed_object);
console::write_line("result = {}", result); // Display: result = 3.14;
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
box_floating_point< float > single_object
Represent a boxed single.
Definition single_object.h:29