[libcxx-commits] [libcxx] [libc++] Use relocation in vector::emplace_back (PR #159365)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 17 09:57:35 PDT 2025


================
@@ -80,7 +80,10 @@ struct __exception_guard_exceptions {
 
   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __complete() _NOEXCEPT { __completed_ = true; }
 
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 ~__exception_guard_exceptions() {
+  // __exception_guard is almost always used with a lamdba, so the destructor is almost certainly unique to the calling
----------------
ldionne wrote:

```suggestion
  // __exception_guard is almost always used with a lambda, so the destructor is almost certainly unique to the calling
```

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


More information about the libcxx-commits mailing list