[libcxx-commits] [libcxx] [libc++][vector] Make constructor vector(count, value, allocator) exception-safe (PR #82033)

Mateusz Zych via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 16 12:08:59 PST 2024


mtezych wrote:

OK, so you would prefer me to define all constructors filling `std::vector<>` with the same elements
inside the `std::vector<>` class template?

Notice that, you forgot to add the exception guard in the commit https://github.com/llvm/llvm-project/commit/8ff4d218a80b887bb645ec426aefa1ab7144c5f3,
most likely because only the `vector(count, value, allocator)` constructor
was defined inside the `std::vector<>` class template.

https://github.com/llvm/llvm-project/pull/82033


More information about the libcxx-commits mailing list