[all-commits] [llvm/llvm-project] b3afea: [libc++] Make `_IterOps::__iter_move` more similar...

Konstantin Varlamov via All-commits all-commits at lists.llvm.org
Thu Jul 28 02:07:27 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3afea1ce0bd3c9293edae67c1839318eecdd7bf
  Author: Konstantin Varlamov <varconst at apple.com>
  Date:   2022-07-28 (Thu, 28 Jul 2022)

  Changed paths:
    M libcxx/include/__algorithm/iterator_operations.h
    A libcxx/test/libcxx/algorithms/bad_iterator_traits.verify.cpp

  Log Message:
  [libc++] Make `_IterOps::__iter_move` more similar to `std::ranges::iter_move`.

Avoid relying on `iterator_traits` and instead deduce the return type of
dereferencing the iterator. Additionally, add a static check to reject
iterators with incorrect `iterator_traits` at compile time.

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

More information about the All-commits mailing list