[all-commits] [llvm/llvm-project] 2d317d: [libc++] Fix no-op shrink_to_fit for vector<bool> ...

Peng Liu via All-commits all-commits at lists.llvm.org
Tue Jan 21 13:29:19 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d317d903a6c469d4bf64298b21b6dac83f1fc8b
      https://github.com/llvm/llvm-project/commit/2d317d903a6c469d4bf64298b21b6dac83f1fc8b
  Author: Peng Liu <winner245 at hotmail.com>
  Date:   2025-01-21 (Tue, 21 Jan 2025)

  Changed paths:
    M libcxx/include/__vector/vector_bool.h
    M libcxx/test/std/containers/sequences/vector.bool/shrink_to_fit.pass.cpp

  Log Message:
  -----------
  [libc++] Fix no-op shrink_to_fit for vector<bool> (#120495)

This PR addresses an issue where the `shrink_to_fit` function in
`vector<bool>` is effectively a no-op, meaning it will never shrink the
capacity.

Fixes #122502



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