23 template<
typename type_t,
typename ...args_t>
27 template<
typename type_t>
28 sptr<type_t>
new_sptr(
const type_t& arg) {
return sptr<type_t> {
new type_t(arg)};}
30 template<
typename type_t>
31 sptr<type_t>
new_sptr() {
return sptr<type_t>(
new type_t);}
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
sptr< type_t > new_sptr(args_t &&... args)
xtd::news_sptr operator creates a xtd::sptr object.
Definition new_sptr.hpp:24
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10