| 
    piranha
    0.10
    
   | 
 
Default functor for the implementation of piranha::math::is_zero(). More...
#include <piranha/math.hpp>
Public Member Functions | |
| template<typename U , enabler< U > = 0> | |
| bool | operator() (const U &x) const | 
| Call operator.  More... | |
Default functor for the implementation of piranha::math::is_zero().
This functor should be specialised via the std::enable_if mechanism. The default implementation defines a call operator which is enabled only if the argument type is constructible from the C++ int type and T is equality comparable. 
      
  | 
  inline | 
Call operator.
U is constructible from int and equality-comparable.The operator will compare x to an instance of U constructed from the literal 0.
| x | argument to be tested. | 
true if x is zero, false otherwise.| unspecified | any exception thrown by the construction or comparison of instances of type U, or by the conversion of the result of the comparison to bool.  | 
 1.8.14