50#ifndef MICRO_TEST_PLUS_LITERALS_INLINES_H_
51#define MICRO_TEST_PLUS_LITERALS_INLINES_H_
64#pragma GCC diagnostic push
65#pragma GCC diagnostic ignored "-Waggregate-return"
67#pragma clang diagnostic ignored "-Wc++98-compat"
68#pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
110 template <
char... Cs>
128 template <
char... Cs>
146 template <
char... Cs>
165 template <
char... Cs>
183 template <
char... Cs>
201 template <
char... Cs>
219 template <
char... Cs>
238 template <
char... Cs>
257 template <
char... Cs>
276 template <
char... Cs>
281 math::num<
unsigned long long, Cs...> ()>{};
295 template <
char... Cs>
314 template <
char... Cs>
333 template <
char... Cs>
352 template <
char... Cs>
371 template <
char... Cs>
390 template <
char... Cs>
409 template <
char... Cs>
428 template <
char... Cs>
447 template <
char... Cs>
452 float,
math::num<
unsigned long, Cs...> (),
468 template <
char... Cs>
473 double,
math::num<
unsigned long, Cs...> (),
489 template <
char... Cs>
494 long double,
math::num<
unsigned long long, Cs...> (),
516 operator""_b (
const char* name,
decltype (
sizeof (
"")) size)
532 using value_type = bool;
544 operator value_type ()
const
559 operator== (
const named&)
const
574 operator== (
const bool other)
const
580 return named{ { name, size }, {} };
612#pragma GCC diagnostic pop
type_traits::value< std::uint16_t > _u16
Strongly-typed wrapper for std::uint16_t values.
type_traits::value< unsigned long long > _ull
Strongly-typed wrapper for unsigned long long values.
type_traits::value< short > _s
Strongly-typed wrapper for short values.
type_traits::value< int > _i
Strongly-typed wrapper for int values.
type_traits::value< unsigned char > _uc
Strongly-typed wrapper for unsigned char values.
type_traits::value< std::uint8_t > _u8
Strongly-typed wrapper for std::uint8_t values.
type_traits::value< std::int8_t > _i8
Strongly-typed wrapper for std::int8_t values.
type_traits::value< std::int32_t > _i32
Strongly-typed wrapper for std::int32_t values.
constexpr _t(const T &t)
Constructor for the deprecated strongly-typed wrapper.
type_traits::value< unsigned short > _us
Strongly-typed wrapper for unsigned short values.
type_traits::value< double > _d
Strongly-typed wrapper for double values.
type_traits::value< long long > _ll
Strongly-typed wrapper for long long values.
type_traits::value< unsigned > _u
Strongly-typed wrapper for unsigned values.
type_traits::value< bool > _b
Strongly-typed wrapper for bool values.
type_traits::value< long double > _ld
Strongly-typed wrapper for long double values.
type_traits::value< unsigned long > _ul
Strongly-typed wrapper for unsigned long values.
constexpr to_t(const T &t)
Constructor for the strongly-typed wrapper.
type_traits::value< long > _l
Strongly-typed wrapper for long values.
type_traits::value< char > _c
Strongly-typed wrapper for char values.
type_traits::value< std::uint64_t > _u64
Strongly-typed wrapper for std::uint64_t values.
type_traits::value< signed char > _sc
Strongly-typed wrapper for signed char values.
type_traits::value< float > _f
Strongly-typed wrapper for float values.
type_traits::value< std::int64_t > _i64
Strongly-typed wrapper for std::int64_t values.
type_traits::value< std::int16_t > _i16
Strongly-typed wrapper for std::int16_t values.
type_traits::value< std::uint32_t > _u32
Strongly-typed wrapper for std::uint32_t values.
User-defined literals and type wrappers for the µTest++ testing framework.
consteval auto den(void) -> T
Computes the decimal part of a number represented as an array of characters.
consteval auto den_size(void) -> T
Computes the number of decimal places in a number represented as an array of characters.
consteval auto num(void) -> T
Computes the integral value of a number represented as an array of characters.
Type trait utilities and metaprogramming support for the µTest++ testing framework.
Primary namespace for the µTest++ testing framework.
Struct template representing a generic floating point constant with custom size and precision.
Struct template representing a generic integral constant.
Empty base struct for all operator types.
constexpr value(const T &_value, const T precision) noexcept
Constructs a floating-point value with a specified precision.