xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
new_unique_ptr_object.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
unique_ptr_object.hpp
"
6
#include <utility>
7
9
namespace
xtd
{
23
template
<
typename
type_t,
typename
...args_t>
24
[[nodiscard]]
auto
new_unique_ptr_object
(args_t&& ... args) -> xtd::unique_ptr_object<type_t> {
return
xtd::unique_ptr_object<type_t> {
new
type_t(std::forward<args_t>(args)...)};}
25
39
template
<
typename
type_t>
40
[[nodiscard]]
auto
new_unique_ptr_object
(
const
type_t& arg) -> xtd::unique_ptr_object<type_t> {
return
xtd::unique_ptr_object<type_t> {
new
type_t(arg)};}
41
55
template
<
typename
type_t>
56
[[nodiscard]]
auto
new_unique_ptr_object
() -> xtd::unique_ptr_object<type_t> {
return
xtd::unique_ptr_object<type_t>(
new
type_t);}
57
}
xtd::new_unique_ptr_object
auto new_unique_ptr_object(args_t &&... args) -> xtd::unique_ptr_object< type_t >
xtd::new_unique_ptr_object operator creates a xtd::unique_ptr_object object.
Definition
new_unique_ptr_object.hpp:24
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
unique_ptr_object.hpp
Contains xtd::unique_ptr_object class.
Generated on
for xtd by
Gammasoft
. All rights reserved.