The Literals and Wrappers Reference
Literal operators and wrappers for typed operands. More...
Classes Index
struct | _t<T> |
Deprecated generic strongly-typed wrapper for explicit type conversion. More... | |
struct | to_t<T> |
Generic strongly-typed wrapper for explicit type conversion. More... | |
Operators Index
constexpr auto | operator""_b (const char *name, decltype(sizeof("")) size) |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_c () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_d () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_f () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_i () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_i16 () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_i32 () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_i64 () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_i8 () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_l () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_ld () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_ll () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_s () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_sc () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_u () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_u16 () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_u32 () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_u64 () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_u8 () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_uc () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_ul () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_ull () |
User-defined literal operator to convert to | |
template <char... Cs> | |
constexpr auto | operator""_us () |
User-defined literal operator to convert to | |
Functions Index
constexpr | _t (const T &t) |
Constructor for the deprecated strongly-typed wrapper. More... | |
constexpr | to_t (const T &t) |
Constructor for the strongly-typed wrapper. More... | |
Deprecated Type Wrappers Index
using | _b = type_traits::value< bool > |
Strongly-typed wrapper for | |
using | _c = type_traits::value< char > |
Strongly-typed wrapper for | |
using | _d = type_traits::value< double > |
Strongly-typed wrapper for | |
using | _f = type_traits::value< float > |
Strongly-typed wrapper for | |
using | _i = type_traits::value< int > |
Strongly-typed wrapper for | |
using | _i16 = type_traits::value< std::int16_t > |
Strongly-typed wrapper for | |
using | _i32 = type_traits::value< std::int32_t > |
Strongly-typed wrapper for | |
using | _i64 = type_traits::value< std::int64_t > |
Strongly-typed wrapper for | |
using | _i8 = type_traits::value< std::int8_t > |
Strongly-typed wrapper for | |
using | _l = type_traits::value< long > |
Strongly-typed wrapper for | |
using | _ld = type_traits::value< long double > |
Strongly-typed wrapper for | |
using | _ll = type_traits::value< long long > |
Strongly-typed wrapper for | |
using | _s = type_traits::value< short > |
Strongly-typed wrapper for | |
using | _sc = type_traits::value< signed char > |
Strongly-typed wrapper for | |
using | _u = type_traits::value< unsigned > |
Strongly-typed wrapper for | |
using | _u16 = type_traits::value< std::uint16_t > |
Strongly-typed wrapper for | |
using | _u32 = type_traits::value< std::uint32_t > |
Strongly-typed wrapper for | |
using | _u64 = type_traits::value< std::uint64_t > |
Strongly-typed wrapper for | |
using | _u8 = type_traits::value< std::uint8_t > |
Strongly-typed wrapper for | |
using | _uc = type_traits::value< unsigned char > |
Strongly-typed wrapper for | |
using | _ul = type_traits::value< unsigned long > |
Strongly-typed wrapper for | |
using | _ull = type_traits::value< unsigned long long > |
Strongly-typed wrapper for | |
using | _us = type_traits::value< unsigned short > |
Strongly-typed wrapper for | |
Type Wrappers Index
using | to_b = type_traits::value< bool > |
Strongly-typed wrapper for | |
using | to_c = type_traits::value< char > |
Strongly-typed wrapper for | |
using | to_d = type_traits::value< double > |
Strongly-typed wrapper for | |
using | to_f = type_traits::value< float > |
Strongly-typed wrapper for | |
using | to_i = type_traits::value< int > |
Strongly-typed wrapper for | |
using | to_i16 = type_traits::value< std::int16_t > |
Strongly-typed wrapper for | |
using | to_i32 = type_traits::value< std::int32_t > |
Strongly-typed wrapper for | |
using | to_i64 = type_traits::value< std::int64_t > |
Strongly-typed wrapper for | |
using | to_i8 = type_traits::value< std::int8_t > |
Strongly-typed wrapper for | |
using | to_l = type_traits::value< long > |
Strongly-typed wrapper for | |
using | to_ld = type_traits::value< long double > |
Strongly-typed wrapper for | |
using | to_ll = type_traits::value< long long > |
Strongly-typed wrapper for | |
using | to_s = type_traits::value< short > |
Strongly-typed wrapper for | |
using | to_sc = type_traits::value< signed char > |
Strongly-typed wrapper for | |
using | to_u = type_traits::value< unsigned > |
Strongly-typed wrapper for | |
using | to_u16 = type_traits::value< std::uint16_t > |
Strongly-typed wrapper for | |
using | to_u32 = type_traits::value< std::uint32_t > |
Strongly-typed wrapper for | |
using | to_u64 = type_traits::value< std::uint64_t > |
Strongly-typed wrapper for | |
using | to_u8 = type_traits::value< std::uint8_t > |
Strongly-typed wrapper for | |
using | to_uc = type_traits::value< unsigned char > |
Strongly-typed wrapper for | |
using | to_ul = type_traits::value< unsigned long > |
Strongly-typed wrapper for | |
using | to_ull = type_traits::value< unsigned long long > |
Strongly-typed wrapper for | |
using | to_us = type_traits::value< unsigned short > |
Strongly-typed wrapper for | |
Description
Literal operators and wrappers for typed operands.
The µTest++ framework provides a set of literal operators and wrappers to facilitate the creation of strongly typed operands within test expressions. These features enable developers to write clear and type-safe comparisons, improving both readability and correctness in test cases.
Literal operators, available in the dedicated literals
namespace, allow constants to be expressed with explicit types, such as integers and floating-point values. For dynamic values, wrappers are provided to convert them into recognised types at run-time.
This approach ensures that both compile-time constants and run-time values can be compared accurately and expressively, supporting robust and maintainable test code.
- Examples
Operators
operator""_b()
| constexpr |
User-defined literal operator to convert to bool
.
This user-defined literal operator enables the creation of strongly-typed boolean constants from character sequences at compile time.
The operator is particularly useful in test expressions, allowing string literals to be suffixed with _b
(for example, "feature_enabled"_b
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
The returned type is a lightweight wrapper that behaves as a bool
and supports equality comparison with both other named instances and boolean values.
This operator is intended to facilitate expressive and type-safe test conditions.
- Parameters
name Pointer to the character sequence representing the literal. size The size of the character sequence.
- Returns
An instance of a wrapper type convertible to
bool
and supporting equality comparisons.
Definition at line 518 of file literals-inlines.h.
operator""_c()
| nodiscardconstexpr |
User-defined literal operator to convert to char
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type char
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _c
(for example, 'A'_c
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the character constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedchar
value.
Definition at line 130 of file literals-inlines.h.
operator""_d()
| nodiscardconstexpr |
User-defined literal operator to convert to double
.
This user-defined literal operator enables the creation of strongly-typed floating-point constants of type double
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _d
(for example, 2.718_d
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the floating-point constant.
- Returns
A
type_traits::floating_point_constant
instance holding the parseddouble
value.
Definition at line 470 of file literals-inlines.h.
operator""_f()
| nodiscardconstexpr |
User-defined literal operator to convert to float
.
This user-defined literal operator enables the creation of strongly-typed floating-point constants of type float
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _f
(for example, 3.14_f
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the floating-point constant.
- Returns
A
type_traits::floating_point_constant
instance holding the parsedfloat
value.
Definition at line 449 of file literals-inlines.h.
operator""_i()
| nodiscardconstexpr |
User-defined literal operator to convert to int
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type int
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _i
(for example, 42_i
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the integer constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedint
value.
Definition at line 94 of file literals-inlines.h.
operator""_i16()
| nodiscardconstexpr |
User-defined literal operator to convert to int16_t
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type int16_t
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _i16
(for example, 32767_i16
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the int16_t
constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedint16_t
value.
Definition at line 316 of file literals-inlines.h.
operator""_i32()
| nodiscardconstexpr |
User-defined literal operator to convert to int32_t
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type int32_t
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _i32
(for example, 2147483647_i32
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the int32_t
constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedint32_t
value.
Definition at line 335 of file literals-inlines.h.
operator""_i64()
| nodiscardconstexpr |
User-defined literal operator to convert to int64_t
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type int64_t
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _i64
(for example, 9223372036854775807_i64
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the int64_t
constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedint64_t
value.
Definition at line 354 of file literals-inlines.h.
operator""_i8()
| nodiscardconstexpr |
User-defined literal operator to convert to int8_t
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type int8_t
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _i8
(for example, 127_i8
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the int8_t
constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedint8_t
value.
Definition at line 297 of file literals-inlines.h.
operator""_l()
| nodiscardconstexpr |
User-defined literal operator to convert to long
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type long
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _l
(for example, 123_l
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the long integer constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedlong
value.
Definition at line 167 of file literals-inlines.h.
operator""_ld()
| nodiscardconstexpr |
User-defined literal operator to convert to long double
.
This user-defined literal operator enables the creation of strongly-typed floating-point constants of type long double
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _ld
(for example, 1.618_ld
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the floating-point constant.
- Returns
A
type_traits::floating_point_constant
instance holding the parsedlong double
value.
Definition at line 491 of file literals-inlines.h.
operator""_ll()
| nodiscardconstexpr |
User-defined literal operator to convert to long long
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type long long
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _ll
(for example, 123_ll
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the long long integer constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedlong long
value.
Definition at line 185 of file literals-inlines.h.
operator""_s()
| nodiscardconstexpr |
User-defined literal operator to convert to short
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type short
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _s
(for example, 123_s
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the integer constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedshort
value.
Definition at line 112 of file literals-inlines.h.
operator""_sc()
| nodiscardconstexpr |
User-defined literal operator to convert to signed char
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type signed char
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _sc
(for example, 65_sc
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the signed character constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedsigned char
value.
Definition at line 148 of file literals-inlines.h.
operator""_u()
| nodiscardconstexpr |
User-defined literal operator to convert to unsigned
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type unsigned
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _u
(for example, 123_u
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the unsigned integer constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedunsigned
value.
Definition at line 203 of file literals-inlines.h.
operator""_u16()
| nodiscardconstexpr |
User-defined literal operator to convert to uint16_t
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type uint16_t
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _u16
(for example, 65535_u16
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the uint16_t
constant.
- Returns
A
type_traits::integral_constant
instance holding the parseduint16_t
value.
Definition at line 392 of file literals-inlines.h.
operator""_u32()
| nodiscardconstexpr |
User-defined literal operator to convert to uint32_t
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type uint32_t
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _u32
(for example, 4294967295_u32
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the uint32_t
constant.
- Returns
A
type_traits::integral_constant
instance holding the parseduint32_t
value.
Definition at line 411 of file literals-inlines.h.
operator""_u64()
| nodiscardconstexpr |
User-defined literal operator to convert to uint64_t
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type uint64_t
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _u64
(for example, 18446744073709551615_u64
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the uint64_t
constant.
- Returns
A
type_traits::integral_constant
instance holding the parseduint64_t
value.
Definition at line 430 of file literals-inlines.h.
operator""_u8()
| nodiscardconstexpr |
User-defined literal operator to convert to uint8_t
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type uint8_t
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _u8
(for example, 255_u8
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the uint8_t
constant.
- Returns
A
type_traits::integral_constant
instance holding the parseduint8_t
value. and reporting mechanisms.
Definition at line 373 of file literals-inlines.h.
operator""_uc()
| nodiscardconstexpr |
User-defined literal operator to convert to unsigned char
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type unsigned char
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _uc
(for example, 65_uc
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the unsigned character constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedunsigned char
value.
Definition at line 221 of file literals-inlines.h.
operator""_ul()
| nodiscardconstexpr |
User-defined literal operator to convert to unsigned long
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type unsigned long
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _ul
(for example, 123_ul
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the unsigned long integer constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedunsigned long
value.
Definition at line 259 of file literals-inlines.h.
operator""_ull()
| nodiscardconstexpr |
User-defined literal operator to convert to unsigned long long
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type unsigned long long
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _ull
(for example, 123_ull
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the unsigned long long integer constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedunsigned long long
value.
Definition at line 278 of file literals-inlines.h.
operator""_us()
| nodiscardconstexpr |
User-defined literal operator to convert to unsigned short
.
This user-defined literal operator enables the creation of strongly-typed integral constants of type unsigned short
from character sequences at compile time.
The operator is particularly useful in test expressions, allowing constants to be suffixed with _us
(for example, 123_us
) to produce a type-safe value that integrates seamlessly with the µTest++ comparators and reporting mechanisms.
- Template Parameters
Cs The character pack representing the digits of the unsigned short constant.
- Returns
A
type_traits::integral_constant
instance holding the parsedunsigned short
value.
Definition at line 240 of file literals-inlines.h.
Functions
_t()
| inlineexplicitconstexpr |
Constructor for the deprecated strongly-typed wrapper.
- Parameters
t The value to be wrapped and explicitly converted.
Constructs an _t
instance by forwarding the provided value to the base type_traits::value<T>
wrapper.
Definition at line 650 of file literals.h.
to_t()
| inlineexplicitconstexpr |
Constructor for the strongly-typed wrapper.
- Parameters
t The value to be wrapped and explicitly converted.
Constructs a to_t
instance by forwarding the provided value to the base type_traits::value<T>
wrapper.
Definition at line 892 of file literals.h.
Deprecated Type Wrappers
Strongly-typed wrappers for explicit type conversion.
These type aliases provide wrappers for converting values and expressions to specific types for use with µTest++ comparators and test expressions.
The _i
, _u8
, etc. forms are now deprecated as of version 3.2.0. Please use the preferred to_*
type wrappers for new code, as they offer improved clarity and consistency.
- Deprecated
Use the corresponding
to_*
type wrappers instead (since 3.2.0).
_b
|
Strongly-typed wrapper for bool
values.
- Deprecated
Use
to_b
(since 3.2.0).
Definition at line 468 of file literals.h.
_c
|
Strongly-typed wrapper for char
values.
- Deprecated
Use
to_c
(since 3.2.0).
Definition at line 475 of file literals.h.
_d
|
Strongly-typed wrapper for double
values.
- Deprecated
Use
to_d
(since 3.2.0).
Definition at line 613 of file literals.h.
_f
|
Strongly-typed wrapper for float
values.
- Deprecated
Use
to_f
(since 3.2.0).
Definition at line 607 of file literals.h.
_i
|
Strongly-typed wrapper for int
values.
- Deprecated
Use
to_i
(since 3.2.0).
Definition at line 496 of file literals.h.
_i16
|
Strongly-typed wrapper for std::int16_t
values.
- Deprecated
Use
to_i16
(since 3.2.0).
Definition at line 559 of file literals.h.
_i32
|
Strongly-typed wrapper for std::int32_t
values.
- Deprecated
Use
to_i32
(since 3.2.0).
Definition at line 566 of file literals.h.
_i64
|
Strongly-typed wrapper for std::int64_t
values.
- Deprecated
Use
to_i64
(since 3.2.0).
Definition at line 573 of file literals.h.
_i8
|
Strongly-typed wrapper for std::int8_t
values.
- Deprecated
Use
to_i8
(since 3.2.0).
Definition at line 552 of file literals.h.
_l
|
Strongly-typed wrapper for long
values.
- Deprecated
Use
to_l
(since 3.2.0).
Definition at line 503 of file literals.h.
_ld
|
Strongly-typed wrapper for long double
values.
- Deprecated
Use
to_ld
(since 3.2.0).
Definition at line 620 of file literals.h.
_ll
|
Strongly-typed wrapper for long long
values.
- Deprecated
Use
to_ll
(since 3.2.0).
Definition at line 510 of file literals.h.
_s
|
Strongly-typed wrapper for short
values.
- Deprecated
Use
to_s
(since 3.2.0).
Definition at line 489 of file literals.h.
_sc
|
Strongly-typed wrapper for signed char
values.
- Deprecated
Use
to_sc
(since 3.2.0).
Definition at line 482 of file literals.h.
_u
|
Strongly-typed wrapper for unsigned
values.
- Deprecated
Use
to_u
(since 3.2.0).
Definition at line 517 of file literals.h.
_u16
|
Strongly-typed wrapper for std::uint16_t
values.
- Deprecated
Use
to_u16
(since 3.2.0).
Definition at line 587 of file literals.h.
_u32
|
Strongly-typed wrapper for std::uint32_t
values.
- Deprecated
Use
to_u32
(since 3.2.0).
Definition at line 594 of file literals.h.
_u64
|
Strongly-typed wrapper for std::uint64_t
values.
- Deprecated
Use
to_u64
(since 3.2.0).
Definition at line 601 of file literals.h.
_u8
|
Strongly-typed wrapper for std::uint8_t
values.
- Deprecated
Use
to_u8
(since 3.2.0).
Definition at line 580 of file literals.h.
_uc
|
Strongly-typed wrapper for unsigned char
values.
- Deprecated
Use
to_uc
(since 3.2.0).
Definition at line 524 of file literals.h.
_ul
|
Strongly-typed wrapper for unsigned long
values.
- Deprecated
Use
to_ul
(since 3.2.0).
Definition at line 538 of file literals.h.
_ull
|
Strongly-typed wrapper for unsigned long long
values.
- Deprecated
Use
to_ull
(since 3.2.0).
Definition at line 545 of file literals.h.
_us
|
Strongly-typed wrapper for unsigned short
values.
- Deprecated
Use
to_us
(since 3.2.0).
Definition at line 531 of file literals.h.
Type Wrappers
Strongly-typed wrappers for converting dynamic values and expressions to specific types recognised by µTest++ comparators.
These type aliases provide a modern, type-safe mechanism for explicitly converting values to the required types for µTest++ test expressions and comparators. Each alias is a wrapper around type_traits::value<T>
, ensuring that the value is treated as the specified type within the framework.
The to_*
forms are the preferred approach since version 3.2.0, superseding the older _i
, _u8
, etc. aliases, which are now deprecated.
- Example
- Since
3.2.0
to_b
|
to_c
|
to_d
|
to_f
|
to_i
|
to_i16
|
to_i32
|
to_i64
|
to_i8
|
to_l
|
to_ld
|
to_ll
|
to_s
|
to_sc
|
to_u
|
to_u16
|
Strongly-typed wrapper for std::uint16_t
values.
- Since
3.2.0
Definition at line 809 of file literals.h.
to_u32
|
Strongly-typed wrapper for std::uint32_t
values.
- Since
3.2.0
Definition at line 816 of file literals.h.
to_u64
|
Strongly-typed wrapper for std::uint64_t
values.
- Since
3.2.0
Definition at line 823 of file literals.h.
to_u8
|
to_uc
|
Strongly-typed wrapper for unsigned char
values.
- Since
3.2.0
Definition at line 746 of file literals.h.
to_ul
|
Strongly-typed wrapper for unsigned long
values.
- Since
3.2.0
Definition at line 760 of file literals.h.
to_ull
|
Strongly-typed wrapper for unsigned long long
values.
- Since
3.2.0
Definition at line 767 of file literals.h.
to_us
|
Strongly-typed wrapper for unsigned short
values.
- Since
3.2.0
Definition at line 753 of file literals.h.
Generated via docusaurus-plugin-doxygen by Doxygen 1.14.0.