[libcxx-commits] [PATCH] D103734: [libcxx] moves <utility> content out of <type_traits> and into their own headers

Christopher Di Bella via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 4 19:53:59 PDT 2021


cjdb created this revision.
cjdb added reviewers: ldionne, zoecarver, Mordante.
Herald added a subscriber: mgorny.
cjdb requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Moves:

- `std::move`, `std::forward`, `std::declval`, and `std::swap` into `__utility/${FUNCTION_NAME}`.
- `std::swap_ranges` and `std::iter_swap` into `__algorithm/${FUNCTION_NAME}`

Some type traits were also moved into their own headers, but only as
many as necessary to facilitate this patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103734

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/__algorithm/iter_swap.h
  libcxx/include/__algorithm/move.h
  libcxx/include/__algorithm/push_heap.h
  libcxx/include/__algorithm/remove.h
  libcxx/include/__algorithm/reverse.h
  libcxx/include/__algorithm/sift_down.h
  libcxx/include/__algorithm/swap_ranges.h
  libcxx/include/__algorithm/unique.h
  libcxx/include/__decay_copy.h
  libcxx/include/__ranges/access.h
  libcxx/include/__ranges/size.h
  libcxx/include/__type_traits/integral_constant.h
  libcxx/include/__type_traits/is_same.h
  libcxx/include/__type_traits/references.h
  libcxx/include/__utility/declval.h
  libcxx/include/__utility/forward.h
  libcxx/include/__utility/move.h
  libcxx/include/__utility/move_if_noexcept.h
  libcxx/include/__utility/swap.h
  libcxx/include/algorithm
  libcxx/include/future
  libcxx/include/module.modulemap
  libcxx/include/thread
  libcxx/include/tuple
  libcxx/include/type_traits
  libcxx/include/utility
  libcxx/test/std/utilities/utility/forward/forward.fail.cpp
  libcxx/test/std/utilities/utility/utility.swap/swap_array.pass.cpp
  libcxx/test/support/poisoned_hash_helper.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103734.350010.patch
Type: text/x-patch
Size: 44025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210605/947e5321/attachment-0001.bin>


More information about the libcxx-commits mailing list