[libcxx-commits] [PATCH] D72240: Implement C++20 std::atomic_ref and test

Benjamin Trapani via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jan 11 18:35:13 PST 2020


BenjaminTrapani updated this revision to Diff 237524.
BenjaminTrapani added a comment.

Get rid of duplication across __cxx_atomic_* functions by using a traits class and SFINAE to check types and select overrides when required. Static assert that template type is always lock free when built using builtin only mode.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72240/new/

https://reviews.llvm.org/D72240

Files:
  libcxx/include/atomic
  libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp
  libcxx/test/std/atomics/atomics.types.generic/address.pass.cpp
  libcxx/test/std/atomics/atomics.types.generic/assign_to_atomic_ref_deleted.fail.cpp
  libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp
  libcxx/test/std/atomics/atomics.types.generic/test_compare_exchange_helpers.h
  libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.pass.cpp
  libcxx/test/std/atomics/atomics.types.generic/trivially_copyable_ref.fail.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72240.237524.patch
Type: text/x-patch
Size: 66422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200112/d83ab0c8/attachment-0001.bin>


More information about the libcxx-commits mailing list