Operator struct template to check if an expression throws a specific exception.
More...
template<class Callable_T, class Exception_T = void>
struct micro_os_plus::micro_test_plus::detail::throws_< Callable_T, Exception_T >
- Template Parameters
-
Callable_T | The type of the callable object to be invoked. |
Exception_T | The type of the exception to check for (defaults to void for any exception). |
The throws_ struct template provides a type-safe mechanism for verifying whether a callable expression throws a specified exception type during its execution within the framework.
This comparator is designed to support both custom and standard callable types. The result of the exception check 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 1511 of file detail.h.