blob: 0a9ca93d6cc11f42327b329df2604ac5ecbf5479 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#pragma once
#include "auto_wirable.hpp"
template <class Interface, class ObjectImpl, class... Dependencies>
auto AutoWirable<Interface, ObjectImpl, Dependencies...>::resolve(
const Container &container) noexcept -> std::unique_ptr<Interface>
{
return std::make_unique<ObjectImpl>(container.get<Dependencies>()...);
}
|