solinject
1.0.0
C++17 Dependency Injection header-only library
|
Type-erased DI service interface. More...
#include <IService.hpp>
Public Types | |
using | Container = sol::di::Container |
DI container. | |
using | VoidPtr = std::shared_ptr< void > |
Pointer to void. | |
Public Member Functions | |
virtual VoidPtr | GetServiceAsVoidPtr (const Container &container)=0 |
Resolves a service. More... | |
Type-erased DI service interface.
|
pure virtual |
Resolves a service.
container | DI container |
Implemented in sol::di::impl::SingletonService< TService, TServiceParents >, sol::di::impl::SingletonService< TService, TServiceParents... >, sol::di::impl::SharedService< TService, TServiceParents >, and sol::di::impl::TransientService< TService, TServiceParents >.