![]() |
micro-test-plus 3.2.2
µTest++ Testing Framework
|
Logical NOT comparator struct template. More...
#include <micro-os-plus/micro-test-plus.h>
Public Member Functions | |
constexpr | not_ (const T &t={}) |
Constructs a logical NOT comparator for the given operand. | |
constexpr | operator bool () const |
Conversion operator to boolean. | |
constexpr auto | value () const |
Retrieves the value of the operand. |
Public Attributes | |
const T | t_ {} |
Stores the operand. | |
const bool | value_ {} |
Stores the result of the logical NOT operation. |
T | The type of the operand. |
The not_ struct template provides a type-safe mechanism for evaluating the logical negation (NOT) of an operand within the framework.
This comparator supports a wide range of operand types, applying the generic getter to ensure correct value extraction for both custom and standard types. The result of the logical NOT operation is stored in the value_ member for efficient access.
The implementation is optimised for use in embedded environments and supports both compile-time and run-time evaluation.
All definitions are intended for internal use within the framework and are implemented in the include/micro-os-plus/micro-test-plus folder to maintain a structured and modular codebase.
|
inlineexplicitconstexpr |
t | The operand to be negated. |
Evaluates the logical negation of the provided operand at construction, supporting both custom and standard types. The result is stored in the value_ member for efficient access.
Definition at line 1426 of file detail.h.
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
Returns the value of the operand, applying the generic getter to ensure correct extraction for both custom and standard types.
Definition at line 1460 of file detail.h.
References micro_os_plus::micro_test_plus::detail::get(), and t_.
Referenced by micro_os_plus::micro_test_plus::test_reporter::operator<<().
const T micro_os_plus::micro_test_plus::detail::not_< T >::t_ {} |
const bool micro_os_plus::micro_test_plus::detail::not_< T >::value_ {} |