Skip to content

oblerion/ServiceLocator.hpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

easy to use ServiceLocator c++

for register class Service

Service service = new Service();
ServiceLocator.Register<Service>(&service);

or

ServiceLocator.Register<Service>(new Service());

for get class Service

Service service = *(ServiceLocator.Get<Service>());

About

easy to use header ServiceLocator c++

Topics

Resources

License

Stars

Watchers

Forks

Languages