blob: 716668c17125db6e9f8529fd48d6d19edf0726c2 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | #pragma once
#include "DI/container.hpp"
#include "DI/interfaces/wrapper.hpp"
#include <memory>
template <class Interface>
class FunctionWrapper : public IWrapper<Interface>
{
public:
	explicit FunctionWrapper(Interface func) noexcept;
	[[nodiscard]] Interface get() const;
private:
	const Interface _func;
};
#include "function_wrapper.tpp"
 |