diff options
Diffstat (limited to 'src/container.cpp')
-rw-r--r-- | src/container.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/container.cpp b/src/container.cpp index d906f1e..00efc27 100644 --- a/src/container.cpp +++ b/src/container.cpp @@ -7,11 +7,22 @@ namespace yacppdic { void Container::add( - BaseObjectType type, + const BaseObjectType &type, const WrapperPtr<IGenericWrapper> &wrapper ) noexcept { _bindings.insert({ type, wrapper }); } +void Container::remove(const BaseObjectType &type) noexcept +{ + _bindings.erase(type); +} + +Container::WrapperPtr<IGenericWrapper> Container::at(const BaseObjectType &type +) const noexcept +{ + return _bindings.at(type); +} + } // namespace yacppdic |