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

◆ new_uptr()

template<typename type_t , typename ... args_t>
uptr< type_t > xtd::new_uptr ( args_t &&...  args)

xtd::new_uptr operator. This operator creates a xtd::uptr object.

Library
xtd.core
Examples
this is example shows to use xtd::new_uptr with xtd::version class
uptr<xtd::version> version = new_uptr<xtd::version>(1, 2, 3);
delete_(version); // Not mandatory.
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
xtd::string to_string() const noexcept override
Converts the value of the current xtd::version object to its equivalent xtd::string representation.
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.h:114
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
Remarks
The xtd::new_uptr is equivalent to std::make_unique.