scope-guard
Implementation of Scoped Guards and Unique Resource as proposed in P0052. (by offa)
scope
Boost.Scope, a collection of scope guard utilities. (by boostorg)
scope-guard | scope | |
---|---|---|
2 | 2 | |
44 | 11 | |
- | - | |
6.4 | 8.8 | |
7 days ago | about 1 month ago | |
C++ | C++ | |
MIT License | Boost Software License 1.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
scope-guard
Posts with mentions or reviews of scope-guard.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-19.
-
C++20 is great for wrapping C libraries
The unique_resource scope guard from the scope library generalizes well, for non-pointer type handles, example with gstreamer.
-
How to use scope_guard in the standard?
I'm trying to move scope guard to line up with the standard, and found an implementation here https://github.com/offa/scope-guard
scope
Posts with mentions or reviews of scope.
We have used some of these posts to build our list of alternatives
and similar projects.
- Boost.Scope: collection of scope guard utilities
-
Boost.Scope review starts on November 26th
You can find the source code of the library at https://github.com/Lastique/scope and read the documentation at https://lastique.github.io/scope/libs/scope/doc/html/index.html. The library is header-only and thus it is fairly easy to try it out. In addition, the library can be used with Conan and vcpkg (see its README for instructions on how to do that). Finally, there's a single header version suitable for Compiler Explorer (https://raw.githubusercontent.com/Lastique/scope/single-header/include/boost/scope.hpp).
What are some alternatives?
When comparing scope-guard and scope you can also consider the following projects:
scope_guard - A modern C++ scope guard that is easy to use but hard to misuse.
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
modern-cpp-tutorial - 📚 Modern C++ Tutorial: C++11/14/17/20 On the Fly | https://changkun.de/modern-cpp/
rohrkabel - 🔌 A C++ RAII Pipewire-API Wrapper
hana - Your standard library for metaprogramming
concurrent-resource - A header-only C++ library that allows easily creating thread-safe, concurrency friendly resources.
filesystem - An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD.
PEGTL - Parsing Expression Grammar Template Library