libstdc++
|
Public Types | |
typedef _Tp | value_type |
Public Member Functions | |
constexpr | complex (const _Tp &__r=_Tp(), const _Tp &__i=_Tp()) |
template<typename _Up > | |
constexpr | complex (const complex< _Up > &__z) |
constexpr complex | __rep () const |
constexpr _Tp | imag () |
void | imag (_Tp __val) |
complex< _Tp > & | operator*= (const _Tp &) |
template<typename _Up > | |
complex< _Tp > & | operator*= (const complex< _Up > &) |
complex< _Tp > & | operator+= (const _Tp &__t) |
template<typename _Up > | |
complex< _Tp > & | operator+= (const complex< _Up > &) |
complex< _Tp > & | operator-= (const _Tp &__t) |
template<typename _Up > | |
complex< _Tp > & | operator-= (const complex< _Up > &) |
complex< _Tp > & | operator/= (const _Tp &) |
template<typename _Up > | |
complex< _Tp > & | operator/= (const complex< _Up > &) |
complex< _Tp > & | operator= (const _Tp &) |
template<typename _Up > | |
complex< _Tp > & | operator= (const complex< _Up > &) |
constexpr _Tp | real () |
void | real (_Tp __val) |
Template to represent complex numbers.
Specializations for float, double, and long double are part of the library. Results with any other type are not guaranteed.
Tp | Type of real and imaginary values. |
typedef _Tp std::complex< _Tp >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |