[all-commits] [llvm/llvm-project] d3b985: Add exception guard for constructor vector(n, x, a...

Peng Liu via All-commits all-commits at lists.llvm.org
Mon Oct 28 22:29:59 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d3b98559be72682da45df73522173cb315912f6f
      https://github.com/llvm/llvm-project/commit/d3b98559be72682da45df73522173cb315912f6f
  Author: Peng Liu <winner245 at hotmail.com>
  Date:   2024-10-29 (Tue, 29 Oct 2024)

  Changed paths:
    M libcxx/include/__vector/vector.h
    M libcxx/test/std/containers/sequences/vector/vector.cons/exceptions.pass.cpp

  Log Message:
  -----------
  Add exception guard for constructor vector(n, x, a) (#113086)

Added exception guard to the `vector(n, x, a)` constructor to enhance
exception safety. This change ensures that the `vector(n, x, a)`
constructor is consistent with other constructors, such as `vector(n)`,
`vector(n, x)`, `vector(n, a)`, in terms of exception safety.



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