diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-09 17:46:24 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-09 17:46:24 +0200 |
commit | 59d8202868364b6efeb92dbd694d961723b74cc0 (patch) | |
tree | 573aea529c556bb2b893f93ac6ffd85cfb02f4c9 /src/container.cpp | |
parent | cb169dfac720de614821480a2633bb93b6be5245 (diff) |
refactor: replace BaseObjectType with static ObjectType method
Diffstat (limited to 'src/container.cpp')
-rw-r--r-- | src/container.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/container.cpp b/src/container.cpp index 00efc27..044d487 100644 --- a/src/container.cpp +++ b/src/container.cpp @@ -7,20 +7,20 @@ namespace yacppdic { void Container::add( - const BaseObjectType &type, + const ObjectType &type, const WrapperPtr<IGenericWrapper> &wrapper ) noexcept { _bindings.insert({ type, wrapper }); } -void Container::remove(const BaseObjectType &type) noexcept +void Container::remove(const ObjectType &type) noexcept { _bindings.erase(type); } -Container::WrapperPtr<IGenericWrapper> Container::at(const BaseObjectType &type -) const noexcept +auto Container::at(const ObjectType &type) const noexcept + -> Container::WrapperPtr<IGenericWrapper> { return _bindings.at(type); } |