#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