[all-commits] [llvm/llvm-project] 49be23: [libcxx] Support allocators with explicit c-tors i...

Mikhail Maltsev via All-commits all-commits at lists.llvm.org
Thu Oct 21 02:39:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49be23a1eb5743fa92a8367b6081674a8a392da3
      https://github.com/llvm/llvm-project/commit/49be23a1eb5743fa92a8367b6081674a8a392da3
  Author: Mikhail Maltsev <mikhail.maltsev at arm.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M libcxx/include/vector
    M libcxx/test/std/containers/sequences/vector.bool/insert_iter_iter_iter.pass.cpp
    M libcxx/test/std/containers/sequences/vector.bool/insert_iter_size_value.pass.cpp
    M libcxx/test/std/containers/sequences/vector.bool/insert_iter_value.pass.cpp
    M libcxx/test/std/containers/sequences/vector.bool/reserve.pass.cpp
    M libcxx/test/std/containers/sequences/vector.bool/resize_size.pass.cpp

  Log Message:
  -----------
  [libcxx] Support allocators with explicit c-tors in vector<bool>

std::vector<bool> rebinds the supplied allocator to construct objects
of type '__storage_type' rather than 'bool'. Allocators are allowed to
use explicit conversion constructors, so care must be taken when
performing conversions.

Reviewed By: ldionne, #libc

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




More information about the All-commits mailing list