[all-commits] [llvm/llvm-project] 0d450a: [libc++] P2401: conditional noexcept for std::exch...

Joseph Loser via All-commits all-commits at lists.llvm.org
Mon Oct 11 11:35:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d450aa641f94ae2e50cc38438ad1b52e3ed900f
      https://github.com/llvm/llvm-project/commit/0d450aa641f94ae2e50cc38438ad1b52e3ed900f
  Author: Joe Loser <joeloser93 at gmail.com>
  Date:   2021-10-11 (Mon, 11 Oct 2021)

  Changed paths:
    M libcxx/docs/Status/Cxx2bPapers.csv
    M libcxx/include/__utility/exchange.h
    M libcxx/include/utility
    M libcxx/test/std/utilities/utility/exchange/exchange.pass.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list