[libcxx-commits] [PATCH] D157736: [libc++][NFC] Refactor return type enable_ifs to defaulted template arguments

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 11 10:36:30 PDT 2023


philnik created this revision.
Herald added a project: All.
philnik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This brings most of the enable_ifs in libc++ to the same style. It also has the nice side-effect of reducing the size of names of these symbols, since the depedent return type is shorter.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157736

Files:
  libcxx/include/__algorithm/copy_n.h
  libcxx/include/__algorithm/half_positive.h
  libcxx/include/__atomic/atomic.h
  libcxx/include/__atomic/cxx_atomic_impl.h
  libcxx/include/__chrono/duration.h
  libcxx/include/__chrono/time_point.h
  libcxx/include/__filesystem/path.h
  libcxx/include/__filesystem/u8path.h
  libcxx/include/__functional/bind.h
  libcxx/include/__iterator/next.h
  libcxx/include/__iterator/prev.h
  libcxx/include/__memory/shared_ptr.h
  libcxx/include/__memory/unique_ptr.h
  libcxx/include/__random/discard_block_engine.h
  libcxx/include/__random/independent_bits_engine.h
  libcxx/include/__random/linear_congruential_engine.h
  libcxx/include/__random/mersenne_twister_engine.h
  libcxx/include/__random/shuffle_order_engine.h
  libcxx/include/__random/subtract_with_carry_engine.h
  libcxx/include/__system_error/error_code.h
  libcxx/include/__system_error/error_condition.h
  libcxx/include/__type_traits/is_swappable.h
  libcxx/include/__utility/convert_to_integral.h
  libcxx/include/__utility/pair.h
  libcxx/include/__utility/swap.h
  libcxx/include/cmath
  libcxx/include/complex
  libcxx/include/ostream
  libcxx/include/regex
  libcxx/include/set
  libcxx/include/valarray
  libcxx/include/vector

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157736.549455.patch
Type: text/x-patch
Size: 146013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230811/3d43d975/attachment-0001.bin>


More information about the libcxx-commits mailing list