The operators.h
File Reference
C++ header file with declarations for the µTest++ operators. More...
Included Headers
Namespaces Index
namespace | micro_os_plus |
The primary namespace for the µOS++ framework. More... | |
namespace | micro_os_plus::micro_test_plus |
Primary namespace for the µTest++ testing framework. More... | |
namespace | micro_os_plus::micro_test_plus::operators |
Custom operator overloads for expressive and type-safe test assertions. More... | |
Functions Index
constexpr auto | operator and (const Lhs_T &lhs, const Rhs_T &rhs) |
Logical | |
constexpr auto | operator not (const T &t) |
Logical | |
constexpr auto | operator or (const Lhs_T &lhs, const Rhs_T &rhs) |
Logical | |
constexpr auto | operator!= (const Lhs_T &lhs, const Rhs_T &rhs) |
Non-equality operator for custom types. Matches only if at least one operand is of local type. More... | |
constexpr auto | operator!= (std::string_view lhs, std::string_view rhs) |
Non-equality operator for | |
constexpr auto | operator!= (T &&lhs, T &&rhs) |
Non-equality operator for containers. More... | |
constexpr auto | operator< (const Lhs_T &lhs, const Rhs_T &rhs) |
Less than operator. Matches only if at least one operand is of local type (derived from local | |
constexpr auto | operator<= (const Lhs_T &lhs, const Rhs_T &rhs) |
Less than or equal operator. Matches only if at least one operand is of local type (derived from local | |
constexpr auto | operator== (const Lhs_T &lhs, const Rhs_T &rhs) |
Equality operator for custom types. Matches only if at least one operand is of local type. More... | |
constexpr auto | operator== (std::string_view lhs, std::string_view rhs) |
Equality operator for | |
constexpr auto | operator== (T &&lhs, T &&rhs) |
Equality operator for containers. More... | |
constexpr auto | operator> (const Lhs_T &lhs, const Rhs_T &rhs) |
Greater than operator. Matches only if at least one operand is of local type (derived from local | |
constexpr auto | operator>= (const Lhs_T &lhs, const Rhs_T &rhs) |
Greater than or equal operator. Matches only if at least one operand is of local type (derived from local | |
Description
C++ header file with declarations for the µTest++ operators.
This header provides the declarations for the custom operator overloads used within the µTest++ framework. It defines interfaces for equality, inequality, relational, and logical operators tailored for use with the framework’s strongly-typed constants, wrappers, containers, and string views.
These operator overloads enable expressive, concise, and type-safe test assertions, supporting both compile-time and run-time evaluation. The operators are selectively enabled for types recognised by the framework, minimising the risk of conflicts with user-defined or standard operators.
All definitions reside within the micro_os_plus::micro_test_plus::operators
namespace, ensuring clear separation from user code and minimising the risk of naming conflicts.
The header files are organised within the include/micro-os-plus/micro-test-plus
folder to maintain a structured and modular codebase.
This file is intended solely for internal use within the framework and should not be included directly by user code.
File Listing
The file content with the documentation metadata removed is:
Generated via docusaurus-plugin-doxygen by Doxygen 1.14.0.