[libcxx-commits] [libcxx] [libc++] Make `_Atomic(T)` directly use an alias template (PR #168679)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sun Nov 23 23:23:48 PST 2025


frederick-vs-ja wrote:

> I think I am a bit confused. Currently our `std::atomic` contains a member `_Atomic(_Tp)` . and now i see we have `_Atomic(_Tp)` is an alias to `std::atomic`. How did we manage not to get into an infinite loop?

I think the macro `_Atomic` is always defined after all uses of `_Atomic` in members, so this just works.

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


More information about the libcxx-commits mailing list