xtd 0.2.0
types

Definition

Types definitions.

Typedefs

using xtd::byte = uint_least8_t
 Represents a 8-bit unsigned integer. More...
 
using xtd::char16 = char16_t
 Represents a 16-bit unicode character. More...
 
using xtd::char32 = char32_t
 Represents a 32-bit unicode character. More...
 
using xtd::char8 = char8_t
 Represents a 8-bit unicode character. More...
 
using xtd::decimal = long double
 Represents a decimal-precision floating-point number. More...
 
using xtd::int16 = int_least16_t
 Represents a 16-bit signed integer. More...
 
using xtd::int32 = int_least32_t
 Represents a 32-bit signed integer. More...
 
using xtd::int64 = int_least64_t
 Represents a 64-bit signed integer. More...
 
using xtd::intptr = intmax_t
 Represent a pointer or a handle. More...
 
using xtd::ptrdiff = std::ptrdiff_t
 Represent the signed integer type of the result of subtracting two pointers. More...
 
using xtd::sbyte = int_least8_t
 Represents a 8-bit signed integer. More...
 
using xtd::size = size_t
 Represents a size of any object in bytes. More...
 
using xtd::slong = __slong__
 Represents a 32-bit or 64-bit signed integer. More...
 
using xtd::tick = std::ratio< 1LL, 10000000LL >
 Represents a tick (1 tick = 100 nanoseconds). More...
 
using xtd::ticks = std::chrono::duration< int64, tick >
 Represents a tick duration. More...
 
using xtd::time_span = xtd::ticks
 Represents a time interval. More...
 
using xtd::type = std::type_info
 Stores information about a type. More...
 
using xtd::uint16 = uint_least16_t
 Represents a 16-bit unsigned integer. More...
 
using xtd::uint32 = uint_least32_t
 Represents a 32-bit unsigned integer. More...
 
using xtd::uint64 = uint_least64_t
 Represents a 64-bit unsigned integer. More...
 
using xtd::uintptr = uintmax_t
 Represent a pointer or a handle. More...
 
using xtd::ulong = __ulong__
 Represents a 32-bit or 64-bit unsigned integer. More...
 
using xtd::wchar = wchar_t
 Represents a wide character. More...
 

Variables

std::nullptr_t xtd::null
 Represents a null pointer value. More...
 

Typedef Documentation

◆ byte

using xtd::byte = typedef uint_least8_t

#include <xtd.core/include/xtd/types.h>

Represents a 8-bit unsigned integer.

Namespace
xtd
Library
xtd.core

◆ char16

using xtd::char16 = typedef char16_t

#include <xtd.core/include/xtd/types.h>

Represents a 16-bit unicode character.

Namespace
xtd
Library
xtd.core

◆ char32

using xtd::char32 = typedef char32_t

#include <xtd.core/include/xtd/types.h>

Represents a 32-bit unicode character.

Namespace
xtd
Library
xtd.core

◆ char8

using xtd::char8 = typedef char8_t

#include <xtd.core/include/xtd/types.h>

Represents a 8-bit unicode character.

Namespace
xtd
Library
xtd.core

◆ decimal

using xtd::decimal = typedef long double

#include <xtd.core/include/xtd/types.h>

Represents a decimal-precision floating-point number.

Namespace
xtd
Library
xtd.core

◆ int16

using xtd::int16 = typedef int_least16_t

#include <xtd.core/include/xtd/types.h>

Represents a 16-bit signed integer.

Namespace
xtd
Library
xtd.core

◆ int32

using xtd::int32 = typedef int_least32_t

#include <xtd.core/include/xtd/types.h>

Represents a 32-bit signed integer.

Namespace
xtd
Library
xtd.core

◆ int64

using xtd::int64 = typedef int_least64_t

#include <xtd.core/include/xtd/types.h>

Represents a 64-bit signed integer.

Namespace
xtd
Library
xtd.core

◆ intptr

using xtd::intptr = typedef intmax_t

#include <xtd.core/include/xtd/types.h>

Represent a pointer or a handle.

◆ ptrdiff

using xtd::ptrdiff = typedef std::ptrdiff_t

#include <xtd.core/include/xtd/types.h>

Represent the signed integer type of the result of subtracting two pointers.

◆ sbyte

using xtd::sbyte = typedef int_least8_t

#include <xtd.core/include/xtd/types.h>

Represents a 8-bit signed integer.

Namespace
xtd
Library
xtd.core

◆ size

◆ slong

using xtd::slong = typedef __slong__

#include <xtd.core/include/xtd/types.h>

Represents a 32-bit or 64-bit signed integer.

Namespace
xtd
Library
xtd.core

◆ tick

using xtd::tick = typedef std::ratio<1LL, 10000000LL>

#include <xtd.core/include/xtd/tick.h>

Represents a tick (1 tick = 100 nanoseconds).

Namespace
xtd
Library
xtd.core

◆ ticks

using xtd::ticks = typedef std::chrono::duration<int64, tick>

#include <xtd.core/include/xtd/ticks.h>

Represents a tick duration.

Namespace
xtd
Library
xtd.core
Examples:
date_time.cpp, date_time_max_value.cpp, and date_time_ticks.cpp.

◆ time_span

using xtd::time_span = typedef xtd::ticks

#include <xtd.core/include/xtd/time_span.h>

Represents a time interval.

Namespace
xtd
Library
xtd.core

◆ type

using xtd::type = typedef std::type_info

#include <xtd.core/include/xtd/types.h>

Stores information about a type.

Namespace
xtd
Library
xtd.core
Examples:
enum_class_flags_without_helpers.cpp.

◆ uint16

using xtd::uint16 = typedef uint_least16_t

#include <xtd.core/include/xtd/types.h>

Represents a 16-bit unsigned integer.

Namespace
xtd
Library
xtd.core

◆ uint32

using xtd::uint32 = typedef uint_least32_t

#include <xtd.core/include/xtd/types.h>

Represents a 32-bit unsigned integer.

Namespace
xtd
Library
xtd.core

◆ uint64

using xtd::uint64 = typedef uint_least64_t

#include <xtd.core/include/xtd/types.h>

Represents a 64-bit unsigned integer.

Namespace
xtd
Library
xtd.core

◆ uintptr

using xtd::uintptr = typedef uintmax_t

#include <xtd.core/include/xtd/types.h>

Represent a pointer or a handle.

Namespace
xtd
Library
xtd.core

◆ ulong

using xtd::ulong = typedef __ulong__

#include <xtd.core/include/xtd/types.h>

Represents a 32-bit or 64-bit unsigned integer.

Namespace
xtd
Library
xtd.core

◆ wchar

using xtd::wchar = typedef wchar_t

#include <xtd.core/include/xtd/types.h>

Represents a wide character.

Namespace
xtd
Library
xtd.core
Remarks
Represents a 32-bit unicode character on Linux and many other non-Windows systems, but a 16-bit unicode character on Windows.

Variable Documentation

◆ null

std::nullptr_t xtd::null

#include <xtd.core/include/xtd/types.h>

Represents a null pointer value.

Namespace
xtd
Library
xtd.core
Examples
std::unique_ptr<foo_class> foo = std::make_unique<foo_class>();
...
foo = null; // release the unique pointer.
Examples:
format_nullptr.cpp.