KJB
|
#include <l_scope_guard.h>
Public Member Functions | |
Scope_guard (const boost::function0< void > &callback) | |
Public Attributes | |
boost::shared_ptr< void > | on_exit_ |
A simple object that calls a callback when it leaves scope. This is very useful to ensure exception-safety when a resource is obtained at the beginning of a scope and it must be released at the end.
If this object is copied, the callback is called when all copies are deleted.
|
inline |
boost::shared_ptr<void> kjb::Scope_guard::on_exit_ |