X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FADT%2FMapVector.h;h=f19a50b7ba8450cce8c0d2c630abf220fdd170c6;hb=00552e3875ee5f382db6c98286a241a7d0efe1b8;hp=1331b15b2d2944565b0ff2a3d554f91e2d48957c;hpb=16c2e7733788f511d2a742600fbd93934eedf360;p=oota-llvm.git diff --git a/include/llvm/ADT/MapVector.h b/include/llvm/ADT/MapVector.h index 1331b15b2d2..f19a50b7ba8 100644 --- a/include/llvm/ADT/MapVector.h +++ b/include/llvm/ADT/MapVector.h @@ -67,6 +67,11 @@ public: Vector.clear(); } + void swap(MapVector &RHS) { + std::swap(Map, RHS.Map); + std::swap(Vector, RHS.Vector); + } + ValueT &operator[](const KeyT &Key) { std::pair Pair = std::make_pair(Key, 0); std::pair Result = Map.insert(Pair);