xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
make_any_object.hpp
Go to the documentation of this file.
1
3
#pragma once
4
#include "
any_object.hpp
"
5
7
namespace
xtd
{
25
template
<
typename
type_t,
typename
...args_t>
26
[[nodiscard]]
auto
make_any_object
(args_t&& ... args) ->
any_object
{
return
any_object
{type_t(args...)};}
27
29
template
<
typename
type_t>
30
[[nodiscard]]
auto
make_any_object
(
const
type_t& arg) -> any_object {
return
any_object {arg};}
31
32
template
<
typename
type_t>
33
[[nodiscard]]
auto
make_any_object
() ->
any_object
{
return
any_object
{type_t()};}
35
}
any_object.hpp
Contains xtd::any_object class.
xtd::any_object
Represent a polymorphic wrapper capable of holding any type.
Definition
any_object.hpp:29
xtd::make_any_object
auto make_any_object(args_t &&... args) -> any_object
The xtd::make_any_object operator creates a xtd::any_object object.
Definition
make_any_object.hpp:26
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.