Add a scope guard template class.

This commit is contained in:
KingToolbox committed 2020-07-28 01:47:29 +08:00
1 parent 067d6e4045
commit 516b5aaa1f
2 files changed
+61

No files matched your search

+4
View File
@@ -12,6 +12,10 @@ A quick circular buffer template class.
An improved version based on Onigmo 5.13.5. In particular, **the addition of iterator makes it possible to match gap buffer or nonadjacent memory blocks.** Please refer to the sample files for how to use.
## ScopeGuard.h
A class of which the sole purpose is to run the function f in its destructor. This is useful for guaranteeing your cleanup code is executed.
## Spin.h
A high-performance spin mutex and locker.