ECSTASY
All in the name
Loading...
Searching...
No Matches
AType.cpp
Go to the documentation of this file.
1
11
12#include "AType.hpp"
13
15{
17 {
18 return getHash() <=> rhs.getHash();
19 }
20
21 bool AType::operator==(const AType &rhs) const noexcept
22 {
23 return getHash() == rhs.getHash();
24 }
25
26 bool AType::operator==(const std::type_info &rhs) const noexcept
27 {
28 return getTypeInfo() == rhs;
29 }
30
31 bool AType::operator==(const std::string_view &rhs) const noexcept
32 {
33 return getTypeName() == rhs;
34 }
35
36} // namespace ecstasy::rtti
File containing the AType interface for cross-platform type information.
Type erased interface for cross-platform type information.
Definition AType.hpp:46
std::strong_ordering operator<=>(const AType &rhs) const noexcept
Compare two AType instances by their hash.
Definition AType.cpp:16
bool operator==(const AType &rhs) const noexcept
Compare if two AType instances are equal by their hash.
Definition AType.cpp:21
Namespace regrouping the cross platform rtti symbols.
Definition AType.cpp:15