From Jason Turner

[type.index]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp4if6jxs2/{from.md → to.md} +1 -19
tmp/tmp4if6jxs2/{from.md → to.md} RENAMED
@@ -1,20 +1,6 @@
1
- ## Class `type_index` <a id="type.index">[[type.index]]</a>
2
-
3
- ### Header `<typeindex>` synopsis <a id="type.index.synopsis">[[type.index.synopsis]]</a>
4
-
5
- ``` cpp
6
- #include <compare> // see [compare.syn]
7
-
8
- namespace std {
9
- class type_index;
10
- template<class T> struct hash;
11
- template<> struct hash<type_index>;
12
- }
13
- ```
14
-
15
- ### `type_index` overview <a id="type.index.overview">[[type.index.overview]]</a>
16
 
17
  ``` cpp
18
  namespace std {
19
  class type_index {
20
  public:
@@ -39,12 +25,10 @@ namespace std {
39
 
40
  The class `type_index` provides a simple wrapper for `type_info` which
41
  can be used as an index type in associative containers [[associative]]
42
  and in unordered associative containers [[unord]].
43
 
44
- ### `type_index` members <a id="type.index.members">[[type.index.members]]</a>
45
-
46
  ``` cpp
47
  type_index(const type_info& rhs) noexcept;
48
  ```
49
 
50
  *Effects:* Constructs a `type_index` object, the equivalent of
@@ -102,12 +86,10 @@ size_t hash_code() const noexcept;
102
  const char* name() const noexcept;
103
  ```
104
 
105
  *Returns:* `target->name()`.
106
 
107
- ### Hash support <a id="type.index.hash">[[type.index.hash]]</a>
108
-
109
  ``` cpp
110
  template<> struct hash<type_index>;
111
  ```
112
 
113
  For an object `index` of type `type_index`, `hash<type_index>()(index)`
 
1
+ ### Class `type_index` <a id="type.index">[[type.index]]</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  ``` cpp
4
  namespace std {
5
  class type_index {
6
  public:
 
25
 
26
  The class `type_index` provides a simple wrapper for `type_info` which
27
  can be used as an index type in associative containers [[associative]]
28
  and in unordered associative containers [[unord]].
29
 
 
 
30
  ``` cpp
31
  type_index(const type_info& rhs) noexcept;
32
  ```
33
 
34
  *Effects:* Constructs a `type_index` object, the equivalent of
 
86
  const char* name() const noexcept;
87
  ```
88
 
89
  *Returns:* `target->name()`.
90
 
 
 
91
  ``` cpp
92
  template<> struct hash<type_index>;
93
  ```
94
 
95
  For an object `index` of type `type_index`, `hash<type_index>()(index)`