diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-07 00:56:09 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-07 00:56:09 +0000 |
| commit | ec2a51c154e0546c36d8ee1967c8c5d283accdeb (patch) | |
| tree | 21ede118b079448cd8cb3e44c5c2a2d8639ec02a /llvm/docs/ProgrammersManual.html | |
| parent | 67df63f69d81b8859de31fe061e54f3694614946 (diff) | |
| download | bcm5719-llvm-ec2a51c154e0546c36d8ee1967c8c5d283accdeb.tar.gz bcm5719-llvm-ec2a51c154e0546c36d8ee1967c8c5d283accdeb.zip | |
Document MapVector.
llvm-svn: 165366
Diffstat (limited to 'llvm/docs/ProgrammersManual.html')
| -rw-r--r-- | llvm/docs/ProgrammersManual.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/docs/ProgrammersManual.html b/llvm/docs/ProgrammersManual.html index 93acb6d300f..64ddb9d105d 100644 --- a/llvm/docs/ProgrammersManual.html +++ b/llvm/docs/ProgrammersManual.html @@ -98,6 +98,7 @@ option</a></li> <li><a href="#dss_valuemap">"llvm/ADT/ValueMap.h"</a></li> <li><a href="#dss_intervalmap">"llvm/ADT/IntervalMap.h"</a></li> <li><a href="#dss_map"><map></a></li> + <li><a href="#dss_mapvector">"llvm/ADT/MapVector.h"</a></li> <li><a href="#dss_inteqclasses">"llvm/ADT/IntEqClasses.h"</a></li> <li><a href="#dss_immutablemap">"llvm/ADT/ImmutableMap.h"</a></li> <li><a href="#dss_othermap">Other Map-Like Container Options</a></li> @@ -1848,6 +1849,24 @@ another element takes place).</p> </div> + +<!-- _______________________________________________________________________ --> +<h4> + <a name="dss_mapvector">"llvm/ADT/MapVector.h"</a> +</h4> +<div> + +<p> MapVector<KeyT,ValueT> provides a subset of the DenseMap interface. + The main difference is that the iteration order is guaranteed to be + the insertion order, making it an easy (but somewhat expensive) solution + for non-deterministic iteration over maps of pointers. </p> + +<p> It is implemented by mapping from key to an index in a vector of key,value + pairs. This provides fast lookup and iteration, but has two main drawbacks: + The key is stored twice and it doesn't support removing elements. </p> + +</div> + <!-- _______________________________________________________________________ --> <h4> <a name="dss_inteqclasses">"llvm/ADT/IntEqClasses.h"</a> |

