xtd
0.2.0
Loading...
Searching...
No Matches
xtd.core
include
xtd
new_sptr.h
Go to the documentation of this file.
1
4
#pragma once
5
#include "
sptr.h
"
6
8
namespace
xtd
{
22
template
<
typename
type_t,
typename
...args_t>
23
sptr<type_t>
new_sptr
(args_t&& ... args) {
return
sptr<type_t>
{
new
type_t(args...)};}
24
26
template
<
typename
type_t>
27
sptr<type_t>
new_sptr
(
const
type_t& arg) {
return
sptr<type_t> {
new
type_t(arg)};}
28
29
template
<
typename
type_t>
30
sptr<type_t>
new_sptr
() {
return
sptr<type_t>(
new
type_t);}
32
}
xtd::sptr
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition
sptr.h:25
xtd::new_sptr
sptr< type_t > new_sptr(args_t &&... args)
xtd::news_sptr operator creates a xtd::sptr object.
Definition
new_sptr.h:23
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
xtd_about_box.h:10
sptr.h
Contains xtd::sptr type.
Generated on Sun Sep 15 2024 22:27:40 for xtd by
Gammasoft
. All rights reserved.