Skip to main content

literals Namespace

Deprecated user-defined literals of the test checks. More...

Definition​

namespace micro_os_plus::micro_test_plus::literals { ... }

Operators Index​

constexpr autooperator""_b (const char *name, decltype(sizeof("")) size)

Deprecated user-defined literal operator to create a named boolean constant. More...

template <char... Cs>
constexpr autooperator""_c ()

Deprecated user-defined literal operator to convert to char. More...

template <char... Cs>
constexpr autooperator""_d ()

Deprecated user-defined literal operator to convert to double. More...

template <char... Cs>
constexpr autooperator""_f ()

Deprecated user-defined literal operator to convert to float. More...

template <char... Cs>
constexpr autooperator""_i ()

Deprecated user-defined literal operator to convert to int. More...

template <char... Cs>
constexpr autooperator""_i16 ()

Deprecated user-defined literal operator to convert to int16_t. More...

template <char... Cs>
constexpr autooperator""_i32 ()

Deprecated user-defined literal operator to convert to int32_t. More...

template <char... Cs>
constexpr autooperator""_i64 ()

Deprecated user-defined literal operator to convert to int64_t. More...

template <char... Cs>
constexpr autooperator""_i8 ()

Deprecated user-defined literal operator to convert to int8_t. More...

template <char... Cs>
constexpr autooperator""_l ()

Deprecated user-defined literal operator to convert to long. More...

template <char... Cs>
constexpr autooperator""_ld ()

Deprecated user-defined literal operator to convert to long double. More...

template <char... Cs>
constexpr autooperator""_ll ()

Deprecated user-defined literal operator to convert to long long. More...

template <char... Cs>
constexpr autooperator""_s ()

Deprecated user-defined literal operator to convert to short. More...

template <char... Cs>
constexpr autooperator""_sc ()

Deprecated user-defined literal operator to convert to signed char. More...

template <char... Cs>
constexpr autooperator""_u ()

Deprecated user-defined literal operator to convert to unsigned. More...

template <char... Cs>
constexpr autooperator""_u16 ()

Deprecated user-defined literal operator to convert to uint16_t. More...

template <char... Cs>
constexpr autooperator""_u32 ()

Deprecated user-defined literal operator to convert to uint32_t. More...

template <char... Cs>
constexpr autooperator""_u64 ()

Deprecated user-defined literal operator to convert to uint64_t. More...

template <char... Cs>
constexpr autooperator""_u8 ()

Deprecated user-defined literal operator to convert to uint8_t. More...

template <char... Cs>
constexpr autooperator""_uc ()

Deprecated user-defined literal operator to convert to unsigned char. More...

template <char... Cs>
constexpr autooperator""_ul ()

Deprecated user-defined literal operator to convert to unsigned long. More...

template <char... Cs>
constexpr autooperator""_ull ()

Deprecated user-defined literal operator to convert to unsigned long long. More...

template <char... Cs>
constexpr autooperator""_us ()

Deprecated user-defined literal operator to convert to unsigned short. More...

Description​

Deprecated user-defined literals of the test checks.

The literals namespace provides the deprecated user-defined literal operators, which set the type of the operands of the µTest++ comparators and operators.

These operators allow constants to be suffixed (for example, 1_i, 2_u16) to produce strongly-typed values, which the comparator functions and the operators display in the test reports.

The complementary wrappers for converting dynamic values and expressions to recognised types (such as to_i, to_u8) are defined in the parent micro_os_plus::micro_test_plus namespace.

Deprecated

Pass the plain values to the function comparators eq(), ne(), gt(), ge(), lt(), and le(), and use approx() for the floating-point values compared with a tolerance (since 6.0.0). The function comparators report the operands in the same way, and do not need the literal suffixes.

Since

3.2.0


Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.