50#ifndef MICRO_TEST_PLUS_LITERALS_INLINES_H_
51#define MICRO_TEST_PLUS_LITERALS_INLINES_H_
66#pragma GCC diagnostic push
67#pragma GCC diagnostic ignored "-Waggregate-return"
69#pragma clang diagnostic ignored "-Wc++98-compat"
70#pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
93 [[nodiscard]]
constexpr auto
110 template <
char... Cs>
111 [[nodiscard]]
constexpr auto
128 template <
char... Cs>
129 [[nodiscard]]
constexpr auto
146 template <
char... Cs>
147 [[nodiscard]]
constexpr auto
165 template <
char... Cs>
166 [[nodiscard]]
constexpr auto
183 template <
char... Cs>
184 [[nodiscard]]
constexpr auto
201 template <
char... Cs>
202 [[nodiscard]]
constexpr auto
219 template <
char... Cs>
220 [[nodiscard]]
constexpr auto
238 template <
char... Cs>
239 [[nodiscard]]
constexpr auto
257 template <
char... Cs>
258 [[nodiscard]]
constexpr auto
276 template <
char... Cs>
277 [[nodiscard]]
constexpr auto
281 math::num<
unsigned long long, Cs...> ()>{};
295 template <
char... Cs>
296 [[nodiscard]]
constexpr auto
314 template <
char... Cs>
315 [[nodiscard]]
constexpr auto
333 template <
char... Cs>
334 [[nodiscard]]
constexpr auto
352 template <
char... Cs>
353 [[nodiscard]]
constexpr auto
371 template <
char... Cs>
372 [[nodiscard]]
constexpr auto
390 template <
char... Cs>
391 [[nodiscard]]
constexpr auto
409 template <
char... Cs>
410 [[nodiscard]]
constexpr auto
428 template <
char... Cs>
429 [[nodiscard]]
constexpr auto
447 template <
char... Cs>
448 [[nodiscard]]
constexpr auto
452 float,
math::num<
unsigned long, Cs...> (),
468 template <
char... Cs>
469 [[nodiscard]]
constexpr auto
473 double,
math::num<
unsigned long, Cs...> (),
489 template <
char... Cs>
490 [[nodiscard]]
constexpr auto
494 long double,
math::num<
unsigned long long, Cs...> (),
518 operator""_b (
const char* name,
decltype (
sizeof (
"")) size)
535 using value_type = bool;
546 [[nodiscard]]
constexpr
547 operator value_type ()
const
561 [[nodiscard]]
constexpr auto
562 operator== (
const named&)
const
576 [[nodiscard]]
constexpr auto
577 operator== (
const bool other)
const
583 return named{ { name, size }, {} };
593#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.
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.
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.
constexpr auto den(void) -> T
Computes the decimal part of a number represented as an array of characters.
constexpr auto den_size(void) -> T
Computes the number of decimal places in a number represented as an array of characters.
constexpr auto num(void) -> T
Computes the integral value of a number represented as an array of characters.
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.