Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenunary.h
Go to the documentation of this file.
00001 #ifndef _unary_h 00002 #define _unary_h 00003 #include <cmath> 00004 #include <cfloat> 00005 #include <functional> //*TY 12/26/1998 - added to get unary_function 00006 00007 #if !defined (STLPORT) || defined (_STLP_USE_NAMESPACES) 00008 using std::unary_function; 00009 #endif 00010 00011 struct odd : public unary_function<int, bool> { 00012 bool operator()(int n_) const { return(n_ % 2) == 1; } 00013 }; 00014 00015 struct positive : public unary_function<int, bool> { 00016 bool operator()(int n_) const { return n_ >= 0; } 00017 }; 00018 00019 struct square_root : public unary_function<double, double> { 00020 double operator()(double x_) const 00021 { return ::sqrt(x_); } 00022 }; 00023 #endif // _unary_h Generated on Sat May 26 2012 04:34:48 for ReactOS by
1.7.6.1
|