Registry / utility / nonstd-scope-lite

nonstd-scope-lite

JSON →
library0.3.0vcpkgunverified

C++ standard libraries extensions (version 3) scope_exit, scope_fail, scope_success, unique_resource for C++98 and later in a single-file header-only library

vcpkg install nonstd-scope-lite
INSTALL
IMPORT
SIG · NONSTD-SCOPE-LITE
N
nonstd-scope-lite
utilitycppv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nonstd/scope.hpp
✓ #include <nonstd/scope.hpp>

Use scope_exit for automatic cleanup

#include <nonstd/scope.hpp> #include <iostream> int main() { auto guard = nonstd::make_scope_exit([] { std::cout << "Cleanup" << std::endl; }); std::cout << "Hello" << std::endl; return 0; }
Debug
Known issues
gotchaHeader-only library; no linking required
fix
Just include the header; no CMake target needed if using header-only mode
affects: all
Upgrade
Version history
0.3.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources

No resource links recorded.

nonstd-scope-lite — pip install nonstd-scope-lite · libregistry