#include "object_type.hpp" BaseObjectType::BaseObjectType(const std::type_info &type_info) noexcept : _type_info(type_info) { } bool BaseObjectType::operator==(const BaseObjectType &object_type) const noexcept { return hash() == object_type.hash(); } std::size_t BaseObjectType::hash() const noexcept { return _type_info.hash_code(); } std::string_view BaseObjectType::name() const noexcept { return std::string_view(_type_info.name()); } std::size_t ObjectTypeHasher::operator()(const BaseObjectType &object_type) const { return object_type.hash(); }