DenseMap: Provide a move ctor and move semantics for operator[] and FindAndConstruct.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 27 May 2012 17:38:30 +0000 (17:38 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 27 May 2012 17:38:30 +0000 (17:38 +0000)
commitaee60d4d42b913bd3e4958f32ec9e7f2cf28b0ff
tree2bbcdc7f802b45ce294ace41b2299e94b5a20a0c
parent295d8ff007ef2c36a91141d7f7aa218f43c4c4b5
DenseMap: Provide a move ctor and move semantics for operator[] and FindAndConstruct.

The only missing part is insert(), which uses a pair of parameters and I haven't
figured out how to convert it to rvalue references. It's now possible to use a
DenseMap with std::unique_ptr values :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157539 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/DenseMap.h