aboutsummaryrefslogtreecommitdiff
path: root/src/DI/auto_wirable.tpp
blob: 4ad34c42c96f1dd19a5b467cd3eead0428cfc976 (plain)
1
2
3
4
5
6
7
8
9
10
11
#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>()...);
}