blob: 60c7c7808da4c7a677fe83851972455bade73951 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "object_type.hpp"
BaseObjectType::BaseObjectType(const std::type_info &type_info) : _type_info(type_info) {}
bool BaseObjectType::operator==(const BaseObjectType &object_type) const
{
return hash() == object_type.hash();
}
std::size_t BaseObjectType::hash() const
{
return _type_info.hash_code();
}
std::size_t ObjectTypeHasher::operator()(const BaseObjectType &object_type) const
{
return object_type.hash();
}
|