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

throw_error_if_t Class Template Reference

Class template to throw an error if an expression is true. More...

List of all members.

Public Member Functions

 throw_error_if_t (Expr expr)
 Constructor.

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


Private Attributes

Expr expr_
 The expression which, if true, will result in the error being thrown.


Detailed Description

template<typename Expr>
class asio::throw_error_if_t< Expr >

Class template to throw an error if an expression is true.


Constructor & Destructor Documentation

throw_error_if_t Expr  expr  ) 
 

Constructor.


Member Function Documentation

bool operator() const Error &  err  ) 
 

Evaluate the expression.


Member Data Documentation

Expr expr_ [private]
 

The expression which, if true, will result in the error being thrown.