![]() |
micro-test-plus 3.2.2
µTest++ Testing Framework
|
Operator struct template to check if an expression does not throw any exception. More...
#include <micro-os-plus/micro-test-plus.h>
Public Member Functions | |
constexpr | nothrow_ (const Callable_T &func) |
Constructs a nothrow checking operator for the given callable. | |
constexpr | operator bool () const |
Conversion operator to boolean. |
Public Attributes | |
const bool | value_ {} |
Stores the result of the nothrow check. |
Callable_T | The type of the callable object to be invoked. |
The nothrow_ struct template provides a type-safe mechanism for verifying whether a callable expression completes without throwing any exception 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.
|
inlineexplicitconstexpr |
func | The callable object to be invoked. |
Invokes the provided callable and determines whether it completes without throwing any exception. The result is stored in the value_ member for efficient access.
Definition at line 1684 of file detail.h.
References value_.
|
inlinenodiscardconstexpr |
const bool micro_os_plus::micro_test_plus::detail::nothrow_< Callable_T >::value_ {} |