COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/tolerance.h

    r16 r7  
    4949  ///\sa Tolerance<long double>
    5050  ///\sa Tolerance<int>
    51 #if defined __GNUC__ && !defined __STRICT_ANSI__ 
    5251  ///\sa Tolerance<long long int>
    53 #endif
    5452  ///\sa Tolerance<unsigned int>
    55 #if defined __GNUC__ && !defined __STRICT_ANSI__ 
    5653  ///\sa Tolerance<unsigned long long int>
    57 #endif
    5854
    5955  template<class T>
     
    135131    bool negative(Value a) const { return -_epsilon>a; }
    136132    ///Returns \c true if \c a is \e surely non-zero
    137     bool nonZero(Value a) const { return positive(a)||negative(a); }
     133    bool nonZero(Value a) const { return positive(a)||negative(a); };
    138134
    139135    ///@}
     
    186182    bool negative(Value a) const { return -_epsilon>a; }
    187183    ///Returns \c true if \c a is \e surely non-zero
    188     bool nonZero(Value a) const { return positive(a)||negative(a); }
     184    bool nonZero(Value a) const { return positive(a)||negative(a); };
    189185
    190186    ///@}
     
    237233    bool negative(Value a) const { return -_epsilon>a; }
    238234    ///Returns \c true if \c a is \e surely non-zero
    239     bool nonZero(Value a) const { return positive(a)||negative(a); }
     235    bool nonZero(Value a) const { return positive(a)||negative(a); };
    240236
    241237    ///@}
     
    270266    static bool negative(Value a) { return 0>a; }
    271267    ///Returns \c true if \c a is \e surely non-zero
    272     static bool nonZero(Value a) { return a!=0; }
     268    static bool nonZero(Value a) { return a!=0; };
    273269
    274270    ///@}
     
    303299    static bool negative(Value) { return false; }
    304300    ///Returns \c true if \c a is \e surely non-zero
    305     static bool nonZero(Value a) { return a!=0; }
     301    static bool nonZero(Value a) { return a!=0; };
    306302
    307303    ///@}
     
    337333    static bool negative(Value a) { return 0>a; }
    338334    ///Returns \c true if \c a is \e surely non-zero
    339     static bool nonZero(Value a) { return a!=0;}
     335    static bool nonZero(Value a) { return a!=0;};
    340336
    341337    ///@}
     
    370366    static bool negative(Value) { return false; }
    371367    ///Returns \c true if \c a is \e surely non-zero
    372     static bool nonZero(Value a) { return a!=0;}
     368    static bool nonZero(Value a) { return a!=0;};
    373369
    374370    ///@}
     
    407403    static bool negative(Value a) { return 0>a; }
    408404    ///Returns \c true if \c a is \e surely non-zero
    409     static bool nonZero(Value a) { return a!=0;}
     405    static bool nonZero(Value a) { return a!=0;};
    410406
    411407    ///@}
     
    442438    static bool negative(Value) { return false; }
    443439    ///Returns \c true if \c a is \e surely non-zero
    444     static bool nonZero(Value a) { return a!=0;}
     440    static bool nonZero(Value a) { return a!=0;};
    445441
    446442    ///@}
Note: See TracChangeset for help on using the changeset viewer.