[libc++] Add a helper class to write code with the strong exception guarantee
__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`.
Differential Revision: https://reviews.llvm.org/D115730
NOKEYCHECK=True
GitOrigin-RevId: 37e6bd8bc8da29ad485547a683c6685254d4011d
diff --git a/include/module.modulemap b/include/module.modulemap
index 12e0a15..fa4170b 100644
--- a/include/module.modulemap
+++ b/include/module.modulemap
@@ -916,6 +916,7 @@
module rel_ops { private header "__utility/rel_ops.h" }
module swap { private header "__utility/swap.h" }
module to_underlying { private header "__utility/to_underlying.h" }
+ module transaction { private header "__utility/transaction.h" }
}
}
module valarray {