[all-commits] [llvm/llvm-project] 733a98: [libc++] Fix input-only range handling for `vector...

A. Jiang via All-commits all-commits at lists.llvm.org
Tue Jan 21 13:31:04 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 733a98db4a264f474564cc2064b8862dedd8458f
      https://github.com/llvm/llvm-project/commit/733a98db4a264f474564cc2064b8862dedd8458f
  Author: A. Jiang <de34 at live.cn>
  Date:   2025-01-21 (Tue, 21 Jan 2025)

  Changed paths:
    M libcxx/include/__memory/uninitialized_algorithms.h
    M libcxx/include/__vector/vector.h
    M libcxx/include/__vector/vector_bool.h
    M libcxx/test/std/containers/sequences/vector.bool/assign_range.pass.cpp
    M libcxx/test/std/containers/sequences/vector.bool/construct_from_range.pass.cpp
    M libcxx/test/std/containers/sequences/vector.bool/insert_range.pass.cpp
    M libcxx/test/std/containers/sequences/vector/vector.cons/construct_from_range.pass.cpp
    M libcxx/test/std/containers/sequences/vector/vector.modifiers/assign_range.pass.cpp
    M libcxx/test/std/containers/sequences/vector/vector.modifiers/insert_range.pass.cpp

  Log Message:
  -----------
  [libc++] Fix input-only range handling for `vector` (#116157)

Changes:
- Carve out sized but input-only ranges for C++23.
- Call `std::move` for related functions when the iterator is possibly input-only.

Fixes #115727



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