diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-12-20 19:18:00 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-12-20 19:18:00 +0000 |
| commit | 91606850fdbea8a9c6d919b7ad90bd6643676f30 (patch) | |
| tree | de9b765decce54a5fc0a1f5ffb2c2f6fd4db5ab2 /src/dynamic_buffer_iterator.cc | |
| parent | 17cab9c7c4d820b762b5d8e6e703a6d4bd3e30e3 (diff) | |
Utils: add on_scope_end utility
on_scope_end permits to register a functor to be called at scope
end (either exception thrown or normal scope end). this is usefull
for cleanup code that must be run.
usage:
auto cleaner = on_scope_end([]() { cleanup(); });
Diffstat (limited to 'src/dynamic_buffer_iterator.cc')
0 files changed, 0 insertions, 0 deletions
