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

◆ make_any_object()

template<typename type_t , typename ... args_t>
any_object xtd::make_any_object ( args_t &&...  args)

The xtd::make_any_object operator creates a xtd::any_object object.

Library
xtd.core
Examples
this is example shows to use xtd::make_any_object with xtd::version class
any_object ver = make_any_object<version>(1, 2, 3);
console::write_line("version = {}", ver.to_string());
string to_string() const noexcept override
Returns a xtd::string that represents the current object.
Definition any_object.h:85
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.h:28
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...