1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#pragma once #include "DI/container.hpp" #include <memory> template <class Interface, class ObjectImpl, class... Dependencies> class AutoWirable { public: static auto resolve(const Container &container) noexcept -> std::unique_ptr<Interface>; }; #include "auto_wirable.tpp"