28#define __XTD_CORE_INTERNAL__
30#undef __XTD_CORE_INTERNAL__
48 template<
typename type_t>
49 inline auto boxing(
const type_t& value)
noexcept {
return typename __box_enum_or_object__<type_t, typename std::is_enum<type_t>::type>
::type(value);}
64 template<
typename type_t,
typename ...args_t>
68 inline const object&
boxing(
const object& value)
noexcept {
return value;}
69 inline string boxing(
const char* value)
noexcept {
return string(value);}
70#if defined(__xtd__cpp_lib_char8_t)
77#if defined(__xtd__cpp_lib_char8_t)
84#if defined(__xtd__cpp_lib_char8_t)
Contains box_enum_or_object struct.
Contains xtd::byte_object alias.
Contains xtd::char16_object alias.
Contains xtd::char32_object alias.
Contains xtd::char8_object alias.
Contains xtd::char_object alias.
Represents a boxed object.
Definition box.hpp:53
Contains xtd::decimal_object alias.
Contains xtd::double_object alias.
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
auto boxing(const type_t &value) noexcept
Allows to box an object.
Definition boxing.hpp:49
int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
char8_t char8
Represents a 8-bit unicode character.
Definition char8.hpp:27
wchar_t wchar
Represents a wide character.
Definition wchar.hpp:24
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
long double decimal
Represents a decimal-precision floating-point number.
Definition decimal.hpp:23
box_floating_point< decimal > decimal_object
Represent a boxed decimal.
Definition decimal_object.hpp:33
int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition ulong.hpp:27
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.hpp:23
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26
box_char< char32 > char32_object
Represent a boxed char32.
Definition char32_object.hpp:33
box_char< char16 > char16_object
Represent a boxed char16.
Definition char16_object.hpp:33
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
box_integer< slong > slong_object
Represent a boxed int16.
Definition slong_object.hpp:29
box_integer< int16 > int16_object
Represent a boxed int16.
Definition int16_object.hpp:29
box_integer< int32 > int32_object
Represent a boxed int32.
Definition int32_object.hpp:29
box_integer< uint16 > uint16_object
Represent a boxed uint16.
Definition uint16_object.hpp:29
box_char< char8 > char8_object
Represent a boxed char8.
Definition char8_object.hpp:34
box_floating_point< float > single_object
Represent a boxed single.
Definition single_object.hpp:29
box_integer< sbyte > sbyte_object
Represent a boxed sbyte.
Definition sbyte_object.hpp:29
box_integer< xtd::byte > byte_object
Represent a boxed byte.
Definition byte_object.hpp:33
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:26
box_floating_point< double > double_object
Represent a boxed double.
Definition double_object.hpp:33
box_char< char > char_object
Represent a boxed char.
Definition char_object.hpp:33
box_char< wchar > wchar_object
Represent a boxed wchar.
Definition wchar_object.hpp:33
box_integer< uint64 > uint64_object
Represent a boxed uint64.
Definition uint64_object.hpp:29
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
box_integer< int64 > int64_object
Represent a boxed int64.
Definition int64_object.hpp:29
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
box_integer< uint32 > uint32_object
Represent a boxed uint32.
Definition uint32_object.hpp:29
box_integer< ulong > ulong_object
Represent a boxed ulong.
Definition ulong_object.hpp:29
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.hpp:23
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition slong.hpp:27
std::type_info type
Stores information about a type.
Definition type.hpp:23
Contains xtd::int16_object alias.
Contains xtd::int32_object alias.
Contains xtd::int64_object alias.
Contains xtd::intptr_object alias.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::intptr_object alias.
Contains xtd::sbyte_object alias.
Contains xtd::single_object alias.
Contains xtd::size_object alias.
Contains xtd::slong_object alias.
Contains xtd::uint16_object alias.
Contains xtd::uint32_object alias.
Contains xtd::uint64_object alias.
Contains xtd::uintptr_object alias.
Contains xtd::ulong_object alias.
Contains xtd::wchar_object alias.