|
constexpr | complex (const _Tp &__r=_Tp(), const _Tp &__i=_Tp()) |
|
constexpr | complex (const complex &)=default |
|
template<typename _Up > |
constexpr | complex (const complex< _Up > &__z) |
|
constexpr complex | __rep () const |
|
_GLIBCXX_ABI_TAG_CXX11 constexpr _Tp | imag () const |
|
_GLIBCXX20_CONSTEXPR void | imag (_Tp __val) |
|
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator*= (const _Tp &) |
|
template<typename _Up > |
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator*= (const complex< _Up > &) |
|
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator+= (const _Tp &__t) |
|
template<typename _Up > |
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator+= (const complex< _Up > &) |
|
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator-= (const _Tp &__t) |
|
template<typename _Up > |
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator-= (const complex< _Up > &) |
|
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator/= (const _Tp &) |
|
template<typename _Up > |
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator/= (const complex< _Up > &) |
|
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator= (const _Tp &) |
|
_GLIBCXX20_CONSTEXPR complex & | operator= (const complex &)=default |
|
template<typename _Up > |
_GLIBCXX20_CONSTEXPR complex< _Tp > & | operator= (const complex< _Up > &) |
|
_GLIBCXX_ABI_TAG_CXX11 constexpr _Tp | real () const |
|
_GLIBCXX20_CONSTEXPR void | real (_Tp __val) |
|
template<typename _Tp>
struct std::complex< _Tp >
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.
- Parameters
-
Tp | Type of real and imaginary values. |
Definition at line 63 of file complex.