[libcxx-commits] [PATCH] D62779: [2/2] Fix complexity of map insert_or_assign with a hint.
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 17 11:34:18 PDT 2020
ldionne requested changes to this revision.
ldionne added a comment.
This revision now requires changes to proceed.
This looks really good, thanks! Just one comment about structured bindings, and I think we're good to go.
================
Comment at: libcxx/include/map:1276
+ _Vp&& __v) {
+ auto [__r, __inserted] = __tree_.__emplace_hint_unique_key_args(
+ __h.__i_, __k, __k, _VSTD::forward<_Vp>(__v));
----------------
You can't use structured bindings here, this is supposed to work before C++17.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62779/new/
https://reviews.llvm.org/D62779
More information about the libcxx-commits
mailing list