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

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

#include <piranha/math.hpp>

Public Member Functions

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

Detailed Description

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

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

This specialisation is activated when T is an integral type.

Definition at line 2693 of file math.hpp.

Member Function Documentation

◆ operator()()

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

Call operator.

This operator will return the expression a = static_cast<T>(b * c), with b * c forcibly cast back to T in order to avoid compiler warnings with short integral types.

Parameters
athe return value.
bthe first operand.
cthe second operand.
Returns
a = static_cast<T>(b * c).

Definition at line 2705 of file math.hpp.


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