[libcxx-commits] [PATCH] D112150: [libcxx] Support allocators with explicit c-tors in vector<bool>

Mikhail Maltsev via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 20 09:21:08 PDT 2021


miyuki created this revision.
miyuki added reviewers: ldionne, Quuxplusone.
miyuki requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112150

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112150.380989.patch
Type: text/x-patch
Size: 6041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211020/87eee498/attachment.bin>


More information about the libcxx-commits mailing list