Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::NoexceptCallable Concept Referenceexport

A callable type that is marked noexcept. More...

#include <callable.h>

Concept definition

template<typename F, typename... Args>
std::is_nothrow_invocable_v<F, Args...>
A callable type that can be invoked with given arguments.
Definition callable.h:62
A callable type that is marked noexcept.
Definition callable.h:115

Detailed Description

A callable type that is marked noexcept.

Use this concept for performance-critical code paths where exception handling overhead should be avoided.

Example usage:

template<NoexceptCallable F>
void safe_execute(F&& func) noexcept {
func();
}

Definition at line 115 of file callable.h.