forked from OSchip/llvm-project
parent
9dd7a380a8
commit
f043f7653e
|
@ -1187,11 +1187,11 @@ pointers, or map other small types to each other.
|
||||||
There are several aspects of DenseMap that you should be aware of, however. The
|
There are several aspects of DenseMap that you should be aware of, however. The
|
||||||
iterators in a densemap are invalidated whenever an insertion occurs, unlike
|
iterators in a densemap are invalidated whenever an insertion occurs, unlike
|
||||||
map. Also, because DenseMap allocates space for a large number of key/value
|
map. Also, because DenseMap allocates space for a large number of key/value
|
||||||
pairs (it starts with 64 by default) if you have large keys or values, it can
|
pairs (it starts with 64 by default), it will waste a lot of space if your keys
|
||||||
waste a lot of space. Finally, you must implement a partial specialization of
|
or values are large. Finally, you must implement a partial specialization of
|
||||||
DenseMapKeyInfo for the key that you want, if it isn't already supported. This
|
DenseMapKeyInfo for the key that you want, if it isn't already supported. This
|
||||||
is required to tell DenseMap about two special marker values (which can never be
|
is required to tell DenseMap about two special marker values (which can never be
|
||||||
inserted into the map).</p>
|
inserted into the map) that it needs internally.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue