diff options
Diffstat (limited to 'src/DI/container.hpp')
-rw-r--r-- | src/DI/container.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/DI/container.hpp b/src/DI/container.hpp index 93722b6..974780a 100644 --- a/src/DI/container.hpp +++ b/src/DI/container.hpp @@ -14,13 +14,13 @@ template <typename Interface> class BindingBuilder { public: - explicit BindingBuilder(Container *container); + explicit BindingBuilder(Container *container) noexcept; template <class ObjectImpl, class = std::enable_if_t<std::is_base_of_v<Interface, ObjectImpl>>> - void to(); + void to() noexcept; - void to_factory(Interface func); + void to_factory(Interface func) noexcept; private: Container *_container; @@ -29,16 +29,16 @@ private: class Container { public: - Container() = default; + Container() noexcept = default; template <class Interface> - BindingBuilder<Interface> bind(); + BindingBuilder<Interface> bind() noexcept; template <class Interface, class = std::enable_if_t<std::is_class_v<Interface>>> - std::shared_ptr<Interface> get() const; + std::shared_ptr<Interface> get() const noexcept; template <typename Interface, typename = std::enable_if_t<is_func_v<Interface>>> - Interface get() const; + Interface get() const noexcept; std::unordered_map<BaseObjectType, std::shared_ptr<IGenericWrapper>, ObjectTypeHasher> bindings; |