libmoost
moost::utils::scope_exit::policy::restore_original_value< scopedT > Struct Template Reference

This policy just resets scoped back to the original value. More...

#include <scope_exit.hpp>

Inheritance diagram for moost::utils::scope_exit::policy::restore_original_value< scopedT >:
Collaboration diagram for moost::utils::scope_exit::policy::restore_original_value< scopedT >:

List of all members.

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_

Detailed Description

template<typename scopedT>
struct moost::utils::scope_exit::policy::restore_original_value< scopedT >

This policy just resets scoped back to the original value.

Definition at line 126 of file scope_exit.hpp.


Member Typedef Documentation

template<typename scopedT >
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.


Constructor & Destructor Documentation

template<typename scopedT >
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.


Member Function Documentation

template<typename scopedT >
void moost::utils::scope_exit::policy::restore_original_value< scopedT >::operator() ( ) const [inline]

Definition at line 137 of file scope_exit.hpp.


Member Data Documentation

template<typename scopedT >
scoped_type const moost::utils::scope_exit::policy::restore_original_value< scopedT >::orig_scoped_ [private]

Definition at line 144 of file scope_exit.hpp.


The documentation for this struct was generated from the following file: