@@ -149,7 +149,9 @@ scripting API.
149
149
+-----------------------+--------------------------+---------------------------------------------------------------------------------------+
150
150
| |hash_set | | ``std::unordered_set `` | **Use this as the "default" set type. ** |
151
151
+-----------------------+--------------------------+---------------------------------------------------------------------------------------+
152
- | |hash_map | | ``std::unordered_map `` | **Use this as the "default" map type. ** Preserves insertion order. |
152
+ | |a_hash_map | | ``std::unordered_map `` | **Use this as the "default" map type. ** Does not preserve insertion order. |
153
+ | | | Note that pointers into the map, as well as iterators, are not stable under mutations.|
154
+ | | | If either of these affordances are needed, use ``HashMap `` instead. |
153
155
+-----------------------+--------------------------+---------------------------------------------------------------------------------------+
154
156
| |string_name | 📜 | ``std::string `` | Uses string interning for fast comparisons. Use this for static strings that are |
155
157
| | | referenced frequently and used in multiple locations in the engine. |
@@ -186,7 +188,10 @@ scripting API.
186
188
| | | This means it's generally slower but can be copied around almost for free. |
187
189
| | | The performance benefits of ``VSet `` aren't established, so prefer using other types. |
188
190
+-----------------------+--------------------------+---------------------------------------------------------------------------------------+
189
- | |a_hash_map | | ``std::unordered_map `` | Array-based implementation of a hash map. Does not preserve insertion order. |
191
+ | |hash_map | | ``std::unordered_map `` | Defensive (robust but slow) map type. Preserves insertion order. |
192
+ | | | Pointers to keys and values, as well as iterators, are stable under mutation. |
193
+ | | | Use this map type when either of these affordances are needed. Use ``AHashMap `` |
194
+ | | | otherwise. |
190
195
+-----------------------+--------------------------+---------------------------------------------------------------------------------------+
191
196
| |rb_map | | ``std::map `` | Uses a `red-black tree <https://en.wikipedia.org/wiki/Red-black-tree >`__ |
192
197
| | | for faster access. |
0 commit comments