piranha
0.10
|
Default functor for the implementation of piranha::math::invert(). More...
#include <piranha/invert.hpp>
Public Member Functions | |
template<typename U > | |
auto | operator() (const U &x) const -> decltype(math::pow(x, -1)) |
Call operator. More... | |
Default functor for the implementation of piranha::math::invert().
This functor should be specialised via the std::enable_if
mechanism. The call operator will call piranha::math::pow() with an exponent of -1
, and it is enabled only if integral exponentiation is supported by the argument type.
Definition at line 50 of file invert.hpp.
|
inline |
Call operator.
x | argument for the inversion, |
unspecified | any exception thrown by piranha::math::pow(). |
Definition at line 60 of file invert.hpp.