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