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

This policy just sets scoped to a specific value. More...

#include <scope_exit.hpp>

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

List of all members.

Public Types

typedef scopedT scoped_type
typedef
boost::reference_wrapper
< scopedT > 
policy_type

Public Member Functions

 set_specific_value (scoped_type &scoped, scoped_type const &val)
void operator() () const

Private Attributes

scopedT val_

Detailed Description

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

This policy just sets scoped to a specific value.

Definition at line 105 of file scope_exit.hpp.


Member Typedef Documentation

template<typename scopedT >
typedef boost::reference_wrapper<scopedT> moost::utils::scope_exit::policy::set_specific_value< scopedT >::policy_type

Definition at line 108 of file scope_exit.hpp.

template<typename scopedT >
typedef scopedT moost::utils::scope_exit::policy::set_specific_value< scopedT >::scoped_type

Constructor & Destructor Documentation

template<typename scopedT >
moost::utils::scope_exit::policy::set_specific_value< scopedT >::set_specific_value ( scoped_type scoped,
scoped_type const &  val 
) [inline]

Definition at line 110 of file scope_exit.hpp.


Member Function Documentation

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

Definition at line 113 of file scope_exit.hpp.


Member Data Documentation

template<typename scopedT >
scopedT moost::utils::scope_exit::policy::set_specific_value< scopedT >::val_ [private]

Definition at line 120 of file scope_exit.hpp.


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