2
0
mirror of https://github.com/boostorg/scope.git synced 2026-01-28 07:32:09 +00:00
Commit Graph

16 Commits

Author SHA1 Message Date
Andrey Semashev
e964176389 Improved table formaitting. 2023-10-15 03:26:21 +03:00
Andrey Semashev
9778a1d3ea Added a separate section with comparison with Boost.ScopeExit 2023-10-15 00:44:27 +03:00
Andrey Semashev
fbfdb8a494 Merged scope_check into scope_exit.
As suggested by Peter Dimov on boost-dev ML, scope_check functionality
is merged into scope_exit. Thus scope_exit now has an optional condition
function object, which by default always returns true. If a custom
function object is specified, scope_exit works equivalently to the
previous scope_check, i.e. calls the condition function object to check
whether the action function object needs to be called.
2023-10-14 19:23:32 +03:00
Andrey Semashev
ee3af04981 Renamed user's object method in the docs.
This avoids a potential confusion that the object in the examples
is a scope guard, as scope guards have the set_active method.

Closes https://github.com/Lastique/scope/issues/1.
2023-04-15 19:47:45 +03:00
Andrey Semashev
45fe19acf4 Added discussion of scope_fail vs. scope_exit in the docs. 2023-04-15 00:22:56 +03:00
Andrey Semashev
0dd24702fa Fixed missing default args in Doxygen docs. 2023-04-09 00:57:35 +03:00
Andrey Semashev
c9434eaee8 Updated docs to discuss issues with checking for a thrown exception.
Based on the boost-dev ML discussion, added a note regarding exception_checker
limitation with coroutines. Also, rearranged docs and improved wording in
a few places to make exception_checker and condition functions in general
documentation more distinct. Added rationale for using conditional scope guards
as opposed to using scope_exit universally.
2023-04-09 00:30:36 +03:00
Andrey Semashev
9d4e70a877 Added docs for scope_check and scope guard conditions. 2023-03-27 04:18:31 +03:00
Andrey Semashev
bb538c366c Working on unique_resource docs. 2023-03-22 03:23:56 +03:00
Andrey Semashev
95620761c9 Working on unique_resource docs. 2023-03-20 01:51:56 +03:00
Andrey Semashev
0e83fcbde7 Added support for file descriptors on Windows. 2023-03-20 00:21:06 +03:00
Andrey Semashev
04fec628ef Updating docs for unique_resource. 2023-03-12 20:56:55 +03:00
Andrey Semashev
640e16c317 Updated the note about movability of scope guards. 2023-03-12 17:50:36 +03:00
Andrey Semashev
299cc5dce6 Added a note about moved-from scope guard being active on destruction. 2023-03-12 01:01:02 +03:00
Andrey Semashev
622b434272 Added highlighting features of BOOST_SCOPE_FINAL. 2023-03-12 00:52:42 +03:00
Andrey Semashev
e0fc6d6626 Added scope guards docs. 2023-03-12 00:43:47 +03:00