xtd 0.2.0
Loading...
Searching...
No Matches
make_any_object.h
Go to the documentation of this file.
1
3#pragma once
4#include "any_object.h"
5
7namespace xtd {
19 template<typename type_t, typename ...args_t>
20 any_object make_any_object(args_t&& ... args) {return any_object {type_t(args...)};}
21
23 template<typename type_t>
24 any_object make_any_object(const type_t& arg) {return any_object {arg};}
25
26 template<typename type_t>
27 any_object make_any_object() {return any_object {type_t()};}
29}
Contains std::any type and xtd::any_object class.
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.h:28
any_object make_any_object(args_t &&... args)
The xtd::make_any_object operator creates a xtd::any_object object.
Definition make_any_object.h:20
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10