blob: e4b6779bcde00933fe31300d604ff9cf558e8e1d (
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) : _func(func) {}
[[nodiscard]] Interface get() const;
private:
const Interface _func;
};
#include "function_wrapper.tpp"
|