piranha  0.10
Public Member Functions | List of all members
piranha::math::is_zero_impl< T, detail::math_is_zero_std_complex_enabler< T > > Struct Template Reference

Specialisation of the piranha::math::is_zero() functor for C++ complex floating-point types. More...

#include <piranha/math.hpp>

Public Member Functions

bool operator() (const T &c) const
 Call operator. More...
 

Detailed Description

template<typename T>
struct piranha::math::is_zero_impl< T, detail::math_is_zero_std_complex_enabler< T > >

Specialisation of the piranha::math::is_zero() functor for C++ complex floating-point types.

This specialisation is enabled if T is an std::complex of a C++ floating-point type.

Definition at line 157 of file math.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
bool piranha::math::is_zero_impl< T, detail::math_is_zero_std_complex_enabler< T > >::operator() ( const T &  c) const
inline

Call operator.

The operator will test separately the real and imaginary parts of the complex argument.

Parameters
cargument to be tested.
Returns
true if c is zero, false otherwise.

Definition at line 166 of file math.hpp.


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