piranha  0.10
Public Member Functions | List of all members
piranha::math::pow_impl< T, U, math_rational_pow_enabler< T, U > > Struct Template Reference

Specialisation of the implementation of piranha::math::pow() for piranha::mp_rational. More...

#include <piranha/mp_rational.hpp>

Public Member Functions

ret_type operator() (const T &b, const U &e) const
 Call operator. More...
 

Detailed Description

template<typename T, typename U>
struct piranha::math::pow_impl< T, U, math_rational_pow_enabler< T, U > >

Specialisation of the implementation of piranha::math::pow() for piranha::mp_rational.

This specialisation is activated when one of the arguments is piranha::mp_rational and the other is either piranha::mp_rational or an interoperable type for piranha::mp_rational.

The implementation follows these rules:

Definition at line 1934 of file mp_rational.hpp.

Member Function Documentation

◆ operator()()

template<typename T , typename U >
ret_type piranha::math::pow_impl< T, U, math_rational_pow_enabler< T, U > >::operator() ( const T &  b,
const U &  e 
) const
inline

Call operator.

Parameters
bbase.
eexponent.
Returns
b**e.
Exceptions
std::invalid_argumentif the result cannot be computed.
unspecifiedany exception thrown by:

Definition at line 2017 of file mp_rational.hpp.


The documentation for this struct was generated from the following file: