#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]] auto get() const noexcept -> Interface override;

private:
	const Interface _func;
};

#include "function_wrapper.tpp"