diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-29 19:29:08 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:58 +0200 |
commit | 40c828455d094854d9e531fc7dd0d1a0244957b7 (patch) | |
tree | 5e9e7e5156f0907d58791b6e7e7f3adff44bb4b3 /src/DI/container.cpp | |
parent | a8fbce594f87554b48da661c7939559be801da13 (diff) |
refactor: make container use concepts
Diffstat (limited to 'src/DI/container.cpp')
-rw-r--r-- | src/DI/container.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DI/container.cpp b/src/DI/container.cpp new file mode 100644 index 0000000..4b86186 --- /dev/null +++ b/src/DI/container.cpp @@ -0,0 +1,6 @@ +#include "container.hpp" + +void Container::add(BaseObjectType type, const Ptr<IGenericWrapper> &wrapper) noexcept +{ + _bindings.insert({type, wrapper}); +} |