![]() |
micro-test-plus 3.2.2
µTest++ Testing Framework
|
Deprecated generic strongly-typed wrapper for explicit type conversion. More...
#include <micro-os-plus/micro-test-plus.h>
Public Types | |
using | value_type = T |
The type of the encapsulated value. |
Public Member Functions | |
constexpr | _t (const T &t) |
Constructor for the deprecated strongly-typed wrapper. | |
constexpr decltype(auto) | get (void) const |
Getter for the encapsulated value. | |
constexpr | operator T () const |
Explicit conversion operator to the underlying value type. |
Public Attributes | |
T | value_ {} |
The encapsulated value. |
The _t template provides a public, strongly-typed wrapper for any type T, enabling explicit conversion of dynamic values and expressions to a type recognised by the µTest++ comparators and reporting mechanisms.
This wrapper inherits from type_traits::value<T>, ensuring that the encapsulated value is treated as the specified type within the framework.
Definition at line 639 of file literals.h.
|
inherited |
Definition at line 976 of file type-traits.h.
|
inlinenodiscardconstexprinherited |
Returns the stored value.
Definition at line 1012 of file type-traits.h.
|
inlineexplicitnodiscardconstexprinherited |
Allows explicit conversion to the encapsulated value.
Definition at line 996 of file type-traits.h.
|
inherited |
Definition at line 1020 of file type-traits.h.