llvm.org GIT mirror llvm / 0b08b96
IndexedMap: Document why SmallVector<T, 0> is preferable here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231028 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 5 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2929 template >
3030 class IndexedMap {
3131 typedef typename ToIndexT::argument_type IndexT;
32 // Prefer SmallVector with zero inline storage over std::vector. IndexedMaps
33 // can grow very large and SmallVector grows more efficiently as long as T
34 // is trivially copyable.
3235 typedef SmallVector StorageT;
3336 StorageT storage_;
3437 T nullVal_;