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

A type that can be shared via shared_ptr. More...

#include <service.h>

Concept definition

template<typename T>
concept kcenon::common::concepts::SharedService = std::is_class_v<T> &&
requires { typename std::shared_ptr<T>; }
A type that can be shared via shared_ptr.
Definition service.h:199

Detailed Description

A type that can be shared via shared_ptr.

This concept ensures the type is suitable for shared ownership, which is required for service container storage.

Example usage:

template<SharedService T>
void store(std::shared_ptr<T> service) {
services_.push_back(service);
}

Definition at line 199 of file service.h.