piranha
0.10
|
Default functor for the implementation of piranha::math::is_unitary(). 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_unitary().
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
can be constructed from int
and U
is equality comparable.The operator will compare x
to an instance of U
constructed from the literal 1.
x | argument to be tested. |
true
if x
is equal to 1, false
otherwise.unspecified | any exception thrown by the construction or comparison of instances of type U or by the conversion of the result to bool . |