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

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

#include <piranha/math.hpp>

Public Member Functions

operator() (const T &x) const
 Call operator. More...
 

Detailed Description

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

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

This specialisation is activated when T is an integral type.

Definition at line 478 of file math.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
T piranha::math::cos_impl< T, typename std::enable_if< std::is_integral< T >::value >::type >::operator() ( const T &  x) const
inline

Call operator.

Parameters
xargument.
Returns
cosine of x.
Exceptions
std::invalid_argumentif the argument is not zero.

Definition at line 487 of file math.hpp.


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