The not_
Struct Template Reference
Logical NOT comparator struct template. More...
Declaration
template <class T>
struct micro_os_plus::micro_test_plus::detail::not_<T>
Included Headers
#include <micro-os-plus/micro-test-plus.h>
Public Constructors Index
template <class T> | |
constexpr | not_ (const T &t={}) |
Constructs a logical NOT comparator for the given operand. More... | |
Public Operators Index
template <class T> | |
constexpr | operator bool () const |
Conversion operator to boolean. More... | |
Public Member Functions Index
template <class T> | |
constexpr auto | value () const |
Retrieves the value of the operand. More... | |
Public Member Attributes Index
template <class T> | |
const T | t_ {} |
Stores the operand. More... | |
template <class T> | |
const bool | value_ {} |
Stores the result of the logical NOT operation. More... | |
Description
Logical NOT comparator struct template.
- Template Parameters
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.
Definition at line 1414 of file detail.h.
Public Constructors
not_()
| inlineexplicitconstexpr |
Constructs a logical NOT comparator for the given operand.
- Parameters
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.
Public Operators
operator bool()
| inlinenodiscardconstexpr |
Public Member Functions
value()
| inlinenodiscardconstexpr |
Public Member Attributes
t_
|
value_
The documentation for this struct was generated from the following file:
Generated via docusaurus-plugin-doxygen by Doxygen 1.14.0.