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