xtd 0.2.0
Loading...
Searching...
No Matches
xtd::value_type< type_t > Struct Template Reference

Definition

template<typename type_t>
struct xtd::value_type< type_t >

Represents a value_type struct.

Header
#include <xtd/value_type>
Namespace
xtd
Library
xtd.core
Remarks
Value_type is used to define xtd tyes : xtd::boolean, xtd::byte, xtd::double_, xtd::int16, xtd::int32, xtd::int64, xtd::sbyte, xtd::single, xtd::uint16, xtd::uint32, xtd::uint64, ...
For more information about types, see Native types, boxing and unboxing.

Public Aliases

using native_type
 Represents the native type.

Public Constructors

constexpr value_type () noexcept=default
 Create a new instance of the value_type.
template<typename other_t>
constexpr value_type (other_t &&value) noexcept
 Create a new instance of the value_type with specified same native type value.

Member Typedef Documentation

◆ native_type

template<typename type_t>
using xtd::value_type< type_t >::native_type

Represents the native type.

Constructor & Destructor Documentation

◆ value_type() [1/2]

template<typename type_t>
xtd::value_type< type_t >::value_type ( )
constexprdefaultnoexcept

Create a new instance of the value_type.

◆ value_type() [2/2]

template<typename type_t>
template<typename other_t>
xtd::value_type< type_t >::value_type ( other_t && value)
inlineconstexprnoexcept

Create a new instance of the value_type with specified same native type value.

Parameters
valueThe same native type value to assign.

The documentation for this struct was generated from the following file: