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

A type that provides implementation name for debugging. More...

#include <monitoring.h>

Concept definition

template<typename T>
concept kcenon::common::concepts::NamedImplementation = requires(const T t) {
{ t.get_implementation_name() } -> std::convertible_to<std::string>;
}
A type that provides implementation name for debugging.
Definition monitoring.h:176

Detailed Description

A type that provides implementation name for debugging.

Types satisfying this concept can report their implementation name, useful for logging and debugging purposes.

Example usage:

template<NamedImplementation I>
void log_implementation(const I& impl) {
std::cout << "Using: " << impl.get_implementation_name() << std::endl;
}

Definition at line 176 of file monitoring.h.