#include <for_all.h>
Public Types | |
typedef _Tfunc | func_t |
Public Member Functions | |
any_of_t (func_t func) | |
result_type | operator() (argument_type arg) |
operator bool () | |
Protected Attributes | |
bool | m_res |
func_t | m_func |
Definition at line 364 of file for_all.h.
typedef _Tfunc mbo::any_of_t< _Ty, _Tfunc >::func_t |
mbo::any_of_t< _Ty, _Tfunc >::any_of_t | ( | func_t | func | ) | [inline] |
result_type mbo::any_of_t< _Ty, _Tfunc >::operator() | ( | argument_type | arg | ) | [inline] |
Definition at line 376 of file for_all.h.
References mbo::any_of_t< _Ty, _Tfunc >::m_func, and mbo::any_of_t< _Ty, _Tfunc >::m_res.
00377 { 00378 // Cannot use |= because compiler might generate code that 00379 // optimizes out remaining calls after first sucess. 00380 if (m_func(arg)) 00381 { 00382 m_res = true; 00383 } 00384 return m_res; 00385 }
mbo::any_of_t< _Ty, _Tfunc >::operator bool | ( | ) | [inline] |
Definition at line 387 of file for_all.h.
References mbo::any_of_t< _Ty, _Tfunc >::m_res.
00388 { 00389 return m_res; 00390 }
bool mbo::any_of_t< _Ty, _Tfunc >::m_res [protected] |
Definition at line 394 of file for_all.h.
Referenced by mbo::any_of_t< _Ty, _Tfunc >::operator bool(), and mbo::any_of_t< _Ty, _Tfunc >::operator()().
func_t mbo::any_of_t< _Ty, _Tfunc >::m_func [protected] |
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:10 2008 for MBO-lib by ![]() |