[libcxx-commits] [libcxx] [libc++] Add `__exchange` as a C++11 utility (PR #187953)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Mon Apr 27 01:55:29 PDT 2026


frederick-vs-ja wrote:

> @frederick-vs-ja what is inconvenient about manually writing out `std::__exchange(__obj, _Tp())`?

I think this is still convenient enough as long as `_Tp` is easy to spell.

https://github.com/llvm/llvm-project/pull/187953


More information about the libcxx-commits mailing list