xtd 1.0.0
Loading...
Searching...
No Matches
make_any_object.hpp
Go to the documentation of this file.
1
3#pragma once
4#include "any_object.hpp"
5
7namespace 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}
Contains xtd::any_object class.
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.hpp:29
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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8