1#ifndef ENTT_RESOURCE_LOADER_HPP
2#define ENTT_RESOURCE_LOADER_HPP
14template<
typename Type>
25 template<
typename...
Args>
27 return std::make_shared<Type>(std::forward<Args>(
args)...);
constexpr Type make_obj_using_allocator(const Allocator &allocator, Args &&...args)
Uses-allocator construction utility (waiting for C++20).
Transparent loader for shared resources.
result_type operator()(Args &&...args) const
Constructs a shared pointer to a resource from its arguments.
std::shared_ptr< Type > result_type
Result type.