The and_
Struct Template Reference
Logical AND comparator struct template. More...
Declaration
template <class Lhs_T, class Rhs_T>
struct micro_os_plus::micro_test_plus::detail::and_<Lhs_T, Rhs_T>
Included Headers
#include <micro-os-plus/micro-test-plus.h>
Public Constructors Index
template <class Lhs_T, class Rhs_T> | |
constexpr | and_ (const Lhs_T &lhs={}, const Rhs_T &rhs={}) |
Constructs a logical AND comparator for the given operands. More... | |
Public Operators Index
template <class Lhs_T, class Rhs_T> | |
constexpr | operator bool () const |
Conversion operator to boolean. More... | |
Public Member Functions Index
template <class Lhs_T, class Rhs_T> | |
constexpr auto | lhs (void) const |
Retrieves the left-hand operand. More... | |
template <class Lhs_T, class Rhs_T> | |
constexpr auto | rhs (void) const |
Retrieves the right-hand operand. More... | |
Public Member Attributes Index
template <class Lhs_T, class Rhs_T> | |
const Lhs_T | lhs_ {} |
Stores the left-hand operand. More... | |
template <class Lhs_T, class Rhs_T> | |
const Rhs_T | rhs_ {} |
Stores the right-hand operand. More... | |
template <class Lhs_T, class Rhs_T> | |
const bool | value_ {} |
Stores the result of the logical AND operation. More... | |
Description
Logical AND comparator struct template.
- Template Parameters
Lhs_T The type of the left-hand operand. Rhs_T The type of the right-hand operand.
The and_
struct template provides a type-safe mechanism for evaluating the logical conjunction (AND) of two operands 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 AND 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 1177 of file detail.h.
Public Constructors
and_()
| inlineconstexpr |
Constructs a logical AND comparator for the given operands.
- Parameters
lhs The left-hand operand. rhs The right-hand operand.
Evaluates the logical conjunction of the provided operands 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
lhs()
| inlinenodiscardconstexpr |
rhs()
| inlinenodiscardconstexpr |
Public Member Attributes
lhs_
|
rhs_
|
value_
The documentation for this struct was generated from the following file:
Generated via docusaurus-plugin-doxygen by Doxygen 1.14.0.