piranha  0.10
Public Member Functions | List of all members
piranha::math::gcd3_impl< T, typename > Struct Template Reference

Default functor for the implementation of piranha::math::gcd3(). More...

#include <piranha/math.hpp>

Public Member Functions

template<typename T1 >
auto operator() (T1 &out, const T1 &a, const T1 &b) const -> decltype(out=math::gcd(a, b))
 Call operator. More...

Detailed Description

template<typename T, typename = void>
struct piranha::math::gcd3_impl< T, typename >

Default functor for the implementation of piranha::math::gcd3().

This functor should be specialised via the std::enable_if mechanism.

Definition at line 2888 of file math.hpp.

Member Function Documentation

◆ operator()()

template<typename T , typename = void>
template<typename T1 >
auto piranha::math::gcd3_impl< T, typename >::operator() ( T1 &  out,
const T1 &  a,
const T1 &  b 
) const -> decltype(out = math::gcd(a, b))

Call operator.

This operator is enabled only if the expression out = math::gcd(a,b) is well-formed.
outthe output value.
athe first operand.
bthe second operand.
out = math::gcd(a,b).
unspecifiedany exception thrown by piranha::math::gcd() or the invoked assignment operator.

Definition at line 2904 of file math.hpp.

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