blob: 3b42cc4f5aa5ec270ccdb19126a4b57c0fcd01e4 (
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::shared_ptr<Interface>
{
return std::make_shared<ObjectImpl>(container.get<Dependencies>()...);
}
|