xtd 0.2.0
Loading...
Searching...
No Matches
__box_enum_or_object.h
Go to the documentation of this file.
1
4#pragma once
6#if !defined(__XTD_CORE_INTERNAL__)
7#error "Do not include this file: Internal use only"
8#endif
10
12template<typename type_t, typename bool_t>
13struct __box_enum_or_object__;
14
15template<typename type_t>
16struct __box_enum_or_object__<type_t, std::true_type> {
18};
19
20template<typename type_t>
21struct __box_enum_or_object__<type_t, std::false_type> {
22 using type = typename std::conditional<std::is_base_of<xtd::object, type_t>::value, type_t, xtd::box<type_t>>::type;
23};
Represents a boxed object.
Definition box.h:53
Provides the base class for enumerations.
Definition enum_object.h:41
std::type_info type
Stores information about a type.
Definition type.h:23