blob: 178158aab01339af41d921b483f848b5c93c0d63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include "DI/container.hpp"
#include <memory>
template <class Interface>
class IAutoWirable
{
public:
static Interface resolve() noexcept;
};
template <class Interface, class ObjectImpl, class... Dependencies>
class AutoWirable : public IAutoWirable<Interface>
{
public:
static std::shared_ptr<Interface> resolve(const Container &container) noexcept;
};
#include "auto_wirable.tpp"
|