muu/integer_literals.h file

Contains the definitions of a number of literal operators for integers.

Namespaces

namespace muu
The root namespace for all muu functions and types.
namespace muu::literals inline
Literal operators.

Functions

auto operator""_i128(unsigned long long n) -> int128_t consteval noexcept
Creates an int128_t.
auto operator""_i16(unsigned long long n) -> int16_t consteval noexcept
Creates an int16_t.
auto operator""_i32(unsigned long long n) -> int32_t consteval noexcept
Creates an int32_t.
auto operator""_i64(unsigned long long n) -> int64_t consteval noexcept
Creates an int64_t.
auto operator""_i8(unsigned long long n) -> int8_t consteval noexcept
Creates an int8_t.
auto operator""_u128(unsigned long long n) -> uint128_t consteval noexcept
Creates a uint128_t.
auto operator""_u16(unsigned long long n) -> uint16_t consteval noexcept
Creates a uint16_t.
auto operator""_u32(unsigned long long n) -> uint32_t consteval noexcept
Creates a uint32_t.
auto operator""_u64(unsigned long long n) -> uint64_t consteval noexcept
Creates a uint64_t.
auto operator""_u8(unsigned long long n) -> uint8_t consteval noexcept
Creates a uint8_t.