https://github.com/boostorg/scope
Boost.Scope, a collection of scope guard utilities.
https://github.com/boostorg/scope
boost boost-libraries cpp cpp11 cpp17 defer header-only raii scope-exit scope-fail scope-guard scope-success unique-resource
Last synced: 6 months ago
JSON representation
Boost.Scope, a collection of scope guard utilities.
- Host: GitHub
- URL: https://github.com/boostorg/scope
- Owner: boostorg
- License: bsl-1.0
- Created: 2023-01-09T23:01:59.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2025-08-25T16:17:44.000Z (7 months ago)
- Last Synced: 2025-08-25T18:21:37.309Z (7 months ago)
- Topics: boost, boost-libraries, cpp, cpp11, cpp17, defer, header-only, raii, scope-exit, scope-fail, scope-guard, scope-success, unique-resource
- Language: C++
- Homepage: https://www.boost.org/libs/scope/
- Size: 285 KB
- Stars: 16
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boost.Scope
Boost.Scope provides a number of scope guard utilities and a `unique_resource` wrapper, similar to those described in
[C++ Extensions for Library Fundamentals, Version 3](https://github.com/cplusplus/fundamentals-ts/releases/tag/n4908),
Section 3.3 Scope guard support \[scopeguard\]. The implementation also provides a few non-standard extensions.
### Directories
* **doc** - QuickBook documentation sources
* **include** - Interface headers of Boost.Scope
* **test** - Boost.Scope unit tests
### More information
* Read the [documentation](https://www.boost.org/libs/scope/).
* [Report bugs](https://github.com/boostorg/scope/issues/new). 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](https://github.com/boostorg/scope/compare) against **develop** branch. Note that by submitting patches you agree to license your modifications under the [Boost Software License, Version 1.0](https://www.boost.org/LICENSE_1_0.txt).
### Build status
Branch | GitHub Actions | AppVeyor | Test Matrix | Dependencies |
:-------------: | -------------- | -------- | ----------- | ------------ |
[`master`](https://github.com/boostorg/scope/tree/master) | [](https://github.com/boostorg/scope/actions?query=branch%3Amaster) | [](https://ci.appveyor.com/project/Lastique/scope/branch/master) | [](https://regression.boost.io/master/developer/scope.html) | [](https://pdimov.github.io/boostdep-report/master/scope.html)
[`develop`](https://github.com/boostorg/scope/tree/develop) | [](https://github.com/boostorg/scope/actions?query=branch%3Adevelop) | [](https://ci.appveyor.com/project/Lastique/scope/branch/develop) | [](https://regression.boost.io/develop/developer/scope.html) | [](https://pdimov.github.io/boostdep-report/develop/scope.html)
### License
Distributed under the [Boost Software License, Version 1.0](https://www.boost.org/LICENSE_1_0.txt).