[PATCH] D16360: unordered_map: Avoid unnecessary mallocs when no insert occurs

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 16 15:41:00 PDT 2016


EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.

LGTM after change in inline comment.


================
Comment at: include/__hash_table:114
@@ +113,3 @@
+template <class _Pair, class _Key, class _First, class _Second>
+struct __can_extract_key<_Pair, _Key, pair<_First, _Second>>
+    : conditional<is_same<typename remove_const<_First>::type, _Key>::value,
----------------
`>>` needs to be `> >` for C++03.


http://reviews.llvm.org/D16360





More information about the cfe-commits mailing list