xtd 0.2.0
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<class type_t, class ...args_t>
26 any_object make_any_object(args_t&& ... args) {return any_object {type_t(args...)};}
27
29 template<class type_t>
30 any_object make_any_object(const type_t& arg) {return any_object {arg};}
31
32 template<class type_t>
33 any_object make_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
any_object make_any_object(args_t &&... args)
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