2#ifndef _CONSOLIX_SERVICE_UTILS_HPP_INCLUDED
3#define _CONSOLIX_SERVICE_UTILS_HPP_INCLUDED
static ServiceLocator & get_instance()
Retrieves the singleton instance of the ServiceLocator.
void clear_all()
Clears all registered resources.
void register_service(std::function< std::shared_ptr< T >()> creator)
Registers a resource or service.
bool has_service()
Checks if a resource is registered.
T & get_service()
Retrieves a resource from the locator.
< Utility modules and helpers.
void clear_all()
Clears all registered resources globally. Clears all resources and services registered in the Service...
void register_service()
Registers a resource with default construction globally. Registers a resource or service using defaul...
T & get_service()
Retrieves a resource globally. Retrieves a reference to a globally registered resource from the Servi...
bool has_service()
Checks if a resource is registered globally.