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

Specialisation of the piranha::math::gcd3() functor for integral types. More...

#include <piranha/math.hpp>

Public Member Functions

T & operator() (T &out, const T &a, const T &b) const
 Call operator. More...
 

Detailed Description

template<typename T>
struct piranha::math::gcd3_impl< T, typename std::enable_if< std::is_integral< T >::value >::type >

Specialisation of the piranha::math::gcd3() functor for integral types.

This specialisation is enabled when T is a C++ integral type.

Definition at line 2915 of file math.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
T& piranha::math::gcd3_impl< T, typename std::enable_if< std::is_integral< T >::value >::type >::operator() ( T &  out,
const T &  a,
const T &  b 
) const
inline

Call operator.

This call operator will forcibly cast back to T the result of piranha::math::gcd().

Parameters
outthe output value.
athe first operand.
bthe second operand.
Returns
out = static_cast<T>(math::gcd(a,b)).

Definition at line 2926 of file math.hpp.


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