epsilon_eq.hh

00001 //********************************************************************
00002 //*** operators/epsilon_eq.hh
00003 //*** Copyright (c) 2003-2009 by Markus Winand <mws@fatalmind.com>
00004 //*** $Id: epsilon_eq.hh,v 1.5 2009-03-02 14:16:47 mws Exp $
00005 //********************************************************************
00006 
00007 #ifndef OPERATORS_EPSILON_EQ_HH
00008 #define OPERATORS_EPSILON_EQ_HH
00009 
00010 #include <cmath>
00011 #include <limits>
00012 //#include <iostream>
00013 
00014 namespace fatalmind {
00015 namespace operators {
00016     template<typename T>
00017     bool epsilon_eq(const T lho, const T rho) {
00018 //      std::cerr << "default epsilon_eq" << std::endl;
00019         return (lho == rho);
00020     }
00021 
00022     // specializations
00023     bool epsilon_eq(const float lho, const float rho);
00024     bool epsilon_eq(const double lho, const double rho);
00025 }
00026 }
00027 
00028 #endif

Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3