[libcxx-commits] [PATCH] D115730: [libc++] Add a helper class to write code with the strong exception guarantee

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 14 07:44:41 PST 2021


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

__transaction is a helper class that allows rolling back code in case an
exception is thrown. The main goal is to reduce the clutter when code
needs to be guarded with `#if _LIBCPP_NO_EXCEPTIONS`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115730

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/__detail/transaction.h
  libcxx/include/module.modulemap
  libcxx/test/libcxx/detail/transaction.pass.cpp
  libcxx/test/libcxx/diagnostics/detail.headers/detail/transaction.module.verify.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115730.394248.patch
Type: text/x-patch
Size: 8947 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211214/a43c6026/attachment-0001.bin>


More information about the libcxx-commits mailing list