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

A service that declares its dependencies. More...

#include <service.h>

Concept definition

template<typename T>
typename T::dependencies;
}
A service that declares its dependencies.
Definition service.h:261

Detailed Description

A service that declares its dependencies.

Services satisfying this concept provide a static method or type alias to declare their dependency types for automatic resolution.

Example usage:

template<ServiceWithDependencies T>
void register_with_deps(IServiceContainer& container) {
// Automatically resolve and inject dependencies
}

Definition at line 261 of file service.h.