[libcxx-commits] [PATCH] D116621: [libc++][P2321R2] Add const overloads to tuple swap, construction and assignment
Joe Loser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 30 16:17:36 PST 2022
jloser added inline comments.
================
Comment at: libcxx/include/tuple:307
+ _LIBCPP_HIDE_FROM_ABI constexpr
+ int swap(const __tuple_leaf& __rhs) const noexcept(is_nothrow_swappable_v<__tuple_leaf>) {
+ _VSTD::swap(*this, __rhs);
----------------
No action required, but it looks slightly odd that this uses `noexcept` directly whereas the one above uses `_NOEXCEPT_` . Ditto for the new `swap` implemented below.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116621/new/
https://reviews.llvm.org/D116621
More information about the libcxx-commits
mailing list