Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
complex_traits.hpp File Reference

Classes

struct  sw::universal::number_traits< complex< T > >
 number_traits for sw::universal::complex types More...
struct  sw::universal::is_complex_trait< _Ty >
 Trait to detect if a type is sw::universal::complex. More...
struct  sw::universal::is_complex_trait< complex< T > >
 Specialization for sw::universal::complex types. More...
struct  sw::universal::complex_value_type< T >
 Extract the underlying value type from a complex type. More...
struct  sw::universal::complex_value_type< complex< T > >
 Specialization for complex types: extract T from complex<T>. More...

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Typedefs

template<typename _Ty, typename Type = void>
using sw::universal::enable_if_complex = std::enable_if_t<is_complex<_Ty>, Type>
 SFINAE helper: enable if type is sw::universal::complex.
template<typename T>
using sw::universal::complex_value_type_t = typename complex_value_type<T>::type
 Helper alias template.

Variables

template<typename _Ty>
constexpr bool sw::universal::is_complex = is_complex_trait<_Ty>::value
 Helper variable template.