xte:: (number types)

Defined in header <xte/math/number_types.hpp>

Aliases for integer and floating-point types.


Definitions

using uz = /* std::size_t */;
using iz = /* std::make_signed_t<std::size_t> */;
using uptr = /* std::uintptr_t */;
using iptr = /* std::intptr_t */;
using uptrdiff = /* std::make_signed_t<std::ptrdiff_t> */;
using iptrdiff = /* std::ptrdiff_t */;
using umax = /* std::uintmax_t */;
using imax = /* std::intmax_t */;
using u8 = /* std::uint8_t */;
using i8 = /* std::int8_t */;
using u16 = /* std::uint16_t */;
using i16 = /* std::int16_t */;
using u32 = /* std::uint32_t */;
using i32 = /* std::int32_t */;
using u64 = /* std::uint64_t */;
using i64 = /* std::int64_t */;
using u128 = /* unsigned __int128 */;
using i128 = /* __int128 */;
using f16 = /* std::float16_t */;
using f32 = /* std::float32_t */;
using f64 = /* std::float64_t */;
using f128 = /* std::float128_t */;
using bf16 = /* std::bfloat16_t */;
xte::uptr and xte::iptr are only defined if XTE_FEATURE_INT_PTR is true.
xte::u8 and xte::i8 are only defined if XTE_FEATURE_INT_8 is true.
xte::u16 and xte::i16 are only defined if XTE_FEATURE_INT_16 is true.
xte::u32 and xte::i32 are only defined if XTE_FEATURE_INT_32 is true.
xte::u64 and xte::i64 are only defined if XTE_FEATURE_INT_64 is true.
xte::u128 and xte::i128 are only defined if XTE_FEATURE_INT_128 is true.
xte::f16 is only defined if XTE_FEATURE_FLOAT_16 is true.
xte::f32 is only defined if XTE_FEATURE_FLOAT_32 is true.
xte::f64 is only defined if XTE_FEATURE_FLOAT_64 is true.
xte::f128 is only defined if XTE_FEATURE_FLOAT_128 is true.
xte::bf16 is only defined if XTE_FEATURE_BFLOAT_16 is true.



Example

static_assert(xte::is_same<xte::uz, decltype(sizeof(0))>);
[View in Compiler Explorer]