aboutsummaryrefslogtreecommitdiff
path: root/src/DI/auto_wirable.hpp
blob: 7c94074a0fccc6048c526f6866f6f5bcb6fbfc31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "DI/container.hpp"

#include <memory>

template <class Interface, class ObjectImpl, class... Dependencies>
class AutoWirable
{
public:
	static auto resolve(const Container &container) noexcept
		-> std::unique_ptr<Interface>;
};

#include "auto_wirable.tpp"