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

◆ wchar_object

using xtd::wchar_object = typedef box_char<wchar>

Represent a boxed wchar.

Header
#include <xtd/wchar_object>
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::wchar_object.
auto stringer = [](const object& value) {return value.to_string();};
wchar unboxed_object = L'a';
wchar_object boxed_object = unboxed_object;
auto result = stringer(boxed_object);
console::write_line("result = {}", result); // Display: result = a;
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
wchar_t wchar
Represents a wide character.
Definition wchar.h:24
box_char< wchar > wchar_object
Represent a boxed wchar.
Definition wchar_object.h:33