From 77d97c914a157037b6729d0f3b0fb265aacf4741 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 11 Jun 2022 22:03:46 +0200 Subject: refactor: clean up container API --- src/container.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/container.cpp (limited to 'src/container.cpp') diff --git a/src/container.cpp b/src/container.cpp deleted file mode 100644 index f8c4931..0000000 --- a/src/container.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include "yacppdic/container.hpp" - -#include "yacppdic/detail/internal/wrapper/function_wrapper.hpp" -#include "yacppdic/detail/internal/wrapper/object_wrapper.hpp" - -namespace yacppdic -{ - -void Container::add( - const ObjectIdentifier &type, - const WrapperPtr &wrapper -) noexcept -{ - _bindings.insert({ type, wrapper }); -} - -void Container::remove(const ObjectIdentifier &type) noexcept -{ - _bindings.erase(type); -} - -auto Container::at(const ObjectIdentifier &type) const noexcept - -> Container::WrapperPtr -{ - return _bindings.at(type); -} - -} // namespace yacppdic -- cgit v1.2.3-18-g5258