summaryrefslogtreecommitdiff
path: root/src/dynamic_buffer_iterator.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2011-12-20 19:18:00 +0000
committerMaxime Coste <frrrwww@gmail.com>2011-12-20 19:18:00 +0000
commit91606850fdbea8a9c6d919b7ad90bd6643676f30 (patch)
treede9b765decce54a5fc0a1f5ffb2c2f6fd4db5ab2 /src/dynamic_buffer_iterator.cc
parent17cab9c7c4d820b762b5d8e6e703a6d4bd3e30e3 (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