xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
make_any.hpp
Go to the documentation of this file.
1
3
#pragma once
4
#include "
any.hpp
"
5
7
namespace
xtd
{
20
template
<
typename
type_t,
typename
... args_t>
21
[[nodiscard]]
auto
make_any
(args_t&&... args) ->
xtd::any
{
22
return
std::make_any<type_t>(std::forward<args_t>(args)...);
23
}
24
38
template
<
typename
type_t,
typename
il_type_t,
typename
... args_t>
39
[[nodiscard]]
auto
make_any
(std::initializer_list<il_type_t> il, args_t&&... args) ->
xtd::any
{
40
return
std::make_any<type_t>(il, std::forward<args_t>(args)...);
41
}
42
}
any.hpp
Contains xtd::any type and std::bad_any_cast exception.
xtd::any
std::any any
Represents the any alias on std::any.
Definition
any.hpp:24
xtd::make_any
auto make_any(args_t &&... args) -> xtd::any
Creates an xtd::any object containing an object of type type_t, passing the provided arguments to typ...
Definition
make_any.hpp:21
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.