xtd 0.2.0
Loading...
Searching...
No Matches
new_uptr.h
Go to the documentation of this file.
1
4#pragma once
5#include "uptr.h"
6
8namespace xtd {
22 template<typename type_t, typename ...args_t>
23 uptr<type_t> new_uptr(args_t&& ... args) {return uptr<type_t> {new type_t(args...)};}
24
26 template<typename type_t>
27 uptr<type_t> new_uptr(const type_t& arg) {return uptr<type_t> {new type_t(arg)};}
28
29 template<typename type_t>
30 uptr<type_t> new_uptr() {return uptr<type_t>(new type_t);}
32}
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
uptr< type_t > new_uptr(args_t &&... args)
xtd::new_uptr operator. This operator creates a xtd::uptr object.
Definition new_uptr.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::uptr type.