[llvm-commits] <PATCH> Add DenseMap::insert(value_type&&) method.

Joe Groff arcata at gmail.com
Mon Jan 14 09:26:02 PST 2013


Hi everyone. I noticed that although DenseMap has an internal
InsertIntoBucket(KeyT&&, ValueT&&) method for move-initializing buckets, it
had no public-facing insert(value_type&&) method. Here's a patch that adds
that in if LLVM_HAS_RVALUE_REFERENCES is set. Let me know if it looks OK.
Thanks!

-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130114/5a2046cc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: densemap-move-insert.diff
Type: application/octet-stream
Size: 1194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130114/5a2046cc/attachment.obj>


More information about the llvm-commits mailing list