xtd 0.2.0
new_shared_ptr_object.hpp
Go to the documentation of this file.
1
4#pragma once
6#include <utility>
7
9namespace xtd {
23 template<class type_t, class ...args_t>
24 shared_ptr_object<type_t> new_shared_ptr_object(args_t&& ... args) {return shared_ptr_object<type_t> {new type_t(std::forward<args_t>(args)...)};}
25
39 template<class type_t>
40 shared_ptr_object<type_t> new_shared_ptr_object(const type_t& arg) {return shared_ptr_object<type_t> {new type_t(arg)};}
41
55 template<class type_t>
57}
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
shared_ptr_object< type_t > new_shared_ptr_object()
xtd::new_shared_ptr_object operator creates a xtd::shared_ptr_object object.
Definition new_shared_ptr_object.hpp:56
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::shared_ptr_object class.