[all-commits] [llvm/llvm-project] 7611eb: [libc++][NFC] Simplify enable_if for std::copy opt...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Jun 8 09:46:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7611eb4869db50bd35e7bdac0cadccc5533e78a2
      https://github.com/llvm/llvm-project/commit/7611eb4869db50bd35e7bdac0cadccc5533e78a2
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-06-08 (Wed, 08 Jun 2022)

  Changed paths:
    M libcxx/include/__algorithm/copy.h

  Log Message:
  -----------
  [libc++][NFC] Simplify enable_if for std::copy optimization

Get rid of the __is_trivially_copy_assignable_unwrapped helper, which
is only used in one place, and use __iter_value_type instead of
iterator_traits<T>::value_type.

Differential Revision: https://reviews.llvm.org/D127230




More information about the All-commits mailing list