commit | dc414cd8ca6ee154fbdc4231aa51d98448712695 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Sat Apr 16 00:23:12 2016 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Sat Apr 16 00:23:12 2016 +0000 |
tree | 63f83f3a5a9654c612579a5a8d806fe02f5429a7 | |
parent | 83c9dc1714706857432f729ef355b326a6c89f6f [diff] |
Teach map/unordered_map how to optimize 'emplace(Key, T)'. In cases where emplace is called with two arguments and the first one matches the key_type we can Key to check for duplicates before allocating. This patch expands on work done by dexonsmith@apple.com. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@266498 91177308-0d34-0410-b5e6-96231b3b80d8