[all-commits] [llvm/llvm-project] 3a3517: [libc++] Improve the tests for vector::erase (#116...

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Nov 18 15:49:43 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a3517c5e9d45a1d1aae5320887478b228b0f8be
      https://github.com/llvm/llvm-project/commit/3a3517c5e9d45a1d1aae5320887478b228b0f8be
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2024-11-19 (Tue, 19 Nov 2024)

  Changed paths:
    M libcxx/test/benchmarks/ContainerBenchmarks.h
    M libcxx/test/benchmarks/deque.bench.cpp
    M libcxx/test/benchmarks/vector_operations.bench.cpp
    A libcxx/test/std/containers/sequences/vector/vector.modifiers/common.h
    M libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp
    M libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.pass.cpp

  Log Message:
  -----------
  [libc++] Improve the tests for vector::erase (#116265)

In particular, test everything with both a normal and a min_allocator,
add tests for a few corner cases and add tests with types that are
trivially relocatable. Also add tests that count the number of
assignments performed by vector::erase, since that is mandated by the
Standard.

This patch is a preparation for optimizing vector::erase.



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