[libc++] P2401: conditional noexcept for std::exchange
Implement P2401 which adds a `noexcept` specification to `std::exchange`. Treated as a defect fix which is the motivation for applying this change to all standards mode rather than just C++23 or later as the paper suggests. Reviewed By: Quuxplusone, Mordante, #libc Differential Revision: https://reviews.llvm.org/D111481
Showing
- libcxx/docs/Status/Cxx2bPapers.csv 1 addition, 1 deletionlibcxx/docs/Status/Cxx2bPapers.csv
- libcxx/include/__utility/exchange.h 3 additions, 1 deletionlibcxx/include/__utility/exchange.h
- libcxx/include/utility 2 additions, 1 deletionlibcxx/include/utility
- libcxx/test/std/utilities/utility/exchange/exchange.pass.cpp 34 additions, 2 deletionslibcxx/test/std/utilities/utility/exchange/exchange.pass.cpp
Please register or sign in to comment