libmoost
|
This policy just resets scoped back to the original value. More...
#include <scope_exit.hpp>
Public Types | |
typedef scopedT | scoped_type |
typedef boost::reference_wrapper < scopedT > | policy_type |
Public Member Functions | |
restore_original_value (scoped_type &scoped) | |
void | operator() () const |
Private Attributes | |
scoped_type const | orig_scoped_ |
This policy just resets scoped back to the original value.
Definition at line 126 of file scope_exit.hpp.
typedef boost::reference_wrapper<scopedT> moost::utils::scope_exit::policy::restore_original_value< scopedT >::policy_type |
Definition at line 129 of file scope_exit.hpp.
typedef scopedT moost::utils::scope_exit::policy::restore_original_value< scopedT >::scoped_type |
Reimplemented from moost::utils::scope_exit::policy::policy_base< boost::reference_wrapper< scopedT > >.
Definition at line 128 of file scope_exit.hpp.
moost::utils::scope_exit::policy::restore_original_value< scopedT >::restore_original_value | ( | scoped_type & | scoped | ) | [inline, explicit] |
Definition at line 131 of file scope_exit.hpp.
void moost::utils::scope_exit::policy::restore_original_value< scopedT >::operator() | ( | ) | const [inline] |
Definition at line 137 of file scope_exit.hpp.
scoped_type const moost::utils::scope_exit::policy::restore_original_value< scopedT >::orig_scoped_ [private] |
Definition at line 144 of file scope_exit.hpp.