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

A type that represents a service scope. More...

#include <service.h>

Concept definition

template<typename T>
{ t.parent() };
}
A type that satisfies service container interface requirements.
Definition service.h:137
A type that represents a service scope.
Definition service.h:160

Detailed Description

A type that represents a service scope.

Service scopes inherit from a parent container and maintain their own instances for scoped services.

Example usage:

template<ServiceScopeLike S>
void use_scope(S& scope) {
auto& parent = scope.parent();
// Use scoped services
}

Definition at line 160 of file service.h.