From 40d02748924aa7c48b04cf948204d8dacdfbbc74 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 30 Apr 2022 16:28:13 +0200 Subject: refactor: replace DI files with the yacppdic library --- src/DI/copyable_functor.hpp | 47 --------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/DI/copyable_functor.hpp (limited to 'src/DI/copyable_functor.hpp') diff --git a/src/DI/copyable_functor.hpp b/src/DI/copyable_functor.hpp deleted file mode 100644 index 905da03..0000000 --- a/src/DI/copyable_functor.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once - -#include "DI/interfaces/copyable_functor.hpp" - -#include "DI/alloc_functor.hpp" - -#include - -/** - * A copyable function object. - */ -template -class CopyableFunctor; - -template -class CopyableFunctor - : public ICopyableFunctor -{ -public: - explicit CopyableFunctor(Function &&function); - - explicit CopyableFunctor(const Function &function, const Allocator &allocator); - - explicit CopyableFunctor(const Function &function, Allocator &&allocator); - - explicit CopyableFunctor(Function &&function, Allocator &&allocator); - - auto operator()(Args &&...args) -> Return override; - - auto clone() const -> ICopyableFunctor * override; - - void clone(ICopyableFunctor *functor) const override; - - void destroy() noexcept override; - - void destroy_deallocate() noexcept override; - - [[nodiscard]] auto target(const std::type_info &type_info) const noexcept -> const - void * override; - - [[nodiscard]] auto target_type() const noexcept -> const std::type_info & override; - -private: - AllocFunctor _functor; -}; - -#include "copyable_functor.tpp" -- cgit v1.2.3-18-g5258