ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

unary.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.