asio 0.1.5 Main Page | Class Index | Member Index | Tutorial

set_error_t Class Template Reference

Class template to always set a variable to the error. More...

List of all members.

Public Member Functions

 set_error_t (Target &target)
 Constructor.

template<typename Error> bool operator() (const Error &err)
 Evaluate the expression.


Private Attributes

Target & target_
 The target variable to set to the error.


Detailed Description

template<typename Target>
class asio::set_error_t< Target >

Class template to always set a variable to the error.


Constructor & Destructor Documentation

set_error_t Target &  target  ) 
 

Constructor.


Member Function Documentation

bool operator() const Error &  err  ) 
 

Evaluate the expression.


Member Data Documentation

Target& target_ [private]
 

The target variable to set to the error.