29#ifndef _GLIBCXX_TYPEINDEX
30#define _GLIBCXX_TYPEINDEX 1
33#pragma GCC system_header
36#if __cplusplus < 201103L
41#if __cplusplus > 201703L
45namespace std _GLIBCXX_VISIBILITY(default)
47_GLIBCXX_BEGIN_NAMESPACE_VERSION
60 : _M_target(&__rhs) { }
63 operator==(
const type_index& __rhs)
const noexcept
64 {
return *_M_target == *__rhs._M_target; }
66#if ! __cpp_lib_three_way_comparison
68 operator!=(
const type_index& __rhs)
const noexcept
69 {
return *_M_target != *__rhs._M_target; }
73 operator<(
const type_index& __rhs)
const noexcept
74 {
return _M_target->
before(*__rhs._M_target); }
77 operator<=(
const type_index& __rhs)
const noexcept
78 {
return !__rhs._M_target->
before(*_M_target); }
81 operator>(
const type_index& __rhs)
const noexcept
82 {
return __rhs._M_target->
before(*_M_target); }
85 operator>=(
const type_index& __rhs)
const noexcept
86 {
return !_M_target->
before(*__rhs._M_target); }
88#if __cpp_lib_three_way_comparison
90 operator<=>(
const type_index& __rhs)
const noexcept
92 if (*_M_target == *__rhs._M_target)
93 return strong_ordering::equal;
94 if (_M_target->
before(*__rhs._M_target))
95 return strong_ordering::less;
96 return strong_ordering::greater;
101 hash_code()
const noexcept
102 {
return _M_target->hash_code(); }
105 name()
const noexcept
106 {
return _M_target->
name(); }
112 template<
typename _Tp>
struct hash;
118 typedef size_t result_type;
122 operator()(
const type_index& __ti)
const noexcept
123 {
return __ti.hash_code(); }
126_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
const char * name() const noexcept
bool before(const type_info &__arg) const noexcept
Primary class template hash.