#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 ObjectType &type, const WrapperPtr &wrapper ) noexcept { _bindings.insert({ type, wrapper }); } void Container::remove(const ObjectType &type) noexcept { _bindings.erase(type); } auto Container::at(const ObjectType &type) const noexcept -> Container::WrapperPtr { return _bindings.at(type); } } // namespace yacppdic