8#ifndef GALAXY_RESOURCE_LOADER_HPP_
9#define GALAXY_RESOURCE_LOADER_HPP_
22 template<
typename Resource>
23 requires meta::not_memory<Resource> && meta::is_class<Resource>
35 template<
typename... Args>
36 inline std::shared_ptr<Resource>
operator()(Args&&... args)
38 return std::make_shared<Resource>(std::forward<Args>(args)...);
Loads resources for a resource cache.
std::shared_ptr< Resource > operator()(Args &&... args)
Overloaded operator() used to load a resource.