mirror of
https://github.com/boostorg/scope.git
synced 2026-01-26 07:02:09 +00:00
fbfdb8a4944e638cf22de9ad8464bdf63d86af1c
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.
Boost.Scope
Boost.Scope provides a number of scope guard utilities described in C++ Extensions for Library Fundamentals, Version 3, Section 3.3 Scope guard support [scopeguard]. The implementation also provides a few non-standard extensions.
This library is currently proposed for review and potential inclusion into Boost.
Directories
- doc - QuickBook documentation sources
- include - Interface headers of Boost.Scope
- test - Boost.Scope unit tests
More information
- Read the documentation.
- Report bugs. Be sure to mention Boost version, platform and compiler you're using. A small compilable code sample to reproduce the problem is always good as well.
- Submit your patches as pull requests against develop branch. Note that by submitting patches you agree to license your modifications under the Boost Software License, Version 1.0.
License
Distributed under the Boost Software License, Version 1.0.
Languages
C++
98.8%
CMake
1%
HTML
0.2%