[all-commits] [llvm/llvm-project] a20425: [libc++] Remove _AlgPolicy from std::copy and algo...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Tue Nov 12 14:04:13 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2042521a0387d7d7b80b2987f4b21f5a50bc7bb
      https://github.com/llvm/llvm-project/commit/a2042521a0387d7d7b80b2987f4b21f5a50bc7bb
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2024-11-12 (Tue, 12 Nov 2024)

  Changed paths:
    M libcxx/include/__algorithm/copy.h
    M libcxx/include/__algorithm/copy_move_common.h
    M libcxx/include/__algorithm/ranges_copy.h
    M libcxx/include/__algorithm/ranges_copy_n.h
    M libcxx/include/__algorithm/ranges_set_difference.h
    M libcxx/include/__algorithm/ranges_set_symmetric_difference.h
    M libcxx/include/__algorithm/ranges_set_union.h
    M libcxx/include/__algorithm/set_difference.h
    M libcxx/include/__algorithm/set_symmetric_difference.h
    M libcxx/include/__algorithm/set_union.h
    M libcxx/include/__vector/vector.h
    M libcxx/include/__vector/vector_bool.h

  Log Message:
  -----------
  [libc++] Remove _AlgPolicy from std::copy and algorithms using std::copy (#115887)

`std::copy` doesn't use the `_AlgPolicy` for anything other than calling
itself with it, so we can just remove the argument. This also removes
the need in a few other algorithms which had an `_AlgPolicy` argument
only to call `copy`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list