xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
internal
__box_enum_or_object.hpp
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
12
template
<
typename
type_t,
typename
bool
_t>
13
struct
__box_enum_or_object__;
14
15
template
<
typename
type_t>
16
struct
__box_enum_or_object__<type_t, std::true_type> {
17
using
type
= xtd::enum_object<type_t>;
18
};
19
20
template
<
typename
type_t>
21
struct
__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
};
xtd::type
std::type_info type
Stores information about a type.
Definition
type.hpp:23
Generated on
for xtd by
Gammasoft
. All rights reserved.