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

Specialisation of the implementation of piranha::math::pow() for arithmetic and floating-point types. More...

#include <piranha/pow.hpp>

Public Member Functions

auto operator() (const T &x, const U &y) const -> decltype(std::pow(x, y))
 Call operator. More...
 

Detailed Description

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

Specialisation of the implementation of piranha::math::pow() for arithmetic and floating-point types.

This specialisation is activated when both arguments are C++ arithmetic types and at least one argument is a floating-point type.

Definition at line 75 of file pow.hpp.

Member Function Documentation

◆ operator()()

template<typename T , typename U >
auto piranha::math::pow_impl< T, U, pow_fp_arith_enabler< T, U > >::operator() ( const T &  x,
const U &  y 
) const -> decltype(std::pow(x, y))
inline

Call operator.

This operator will compute the exponentiation via one of the overloads of std::pow().

Parameters
xbase.
yexponent.
Returns
x**y.

Definition at line 85 of file pow.hpp.


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