Specialisation of the piranha::math::cos() functor for integral types.
More...
#include <piranha/math.hpp>
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.
◆ 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
-
- Returns
- cosine of
x
.
- Exceptions
-
std::invalid_argument | if the argument is not zero. |
Definition at line 487 of file math.hpp.
The documentation for this struct was generated from the following file: