typedef _Tp value_type
Value typedef.
constexpr complex (const _Tp &__r=_Tp(), const _Tp &__i=_Tp())
Default constructor. First parameter is x, second parameter is y. Unspecified parameters default to 0.
constexpr complex (const complex &)=default
template<typename _Up > constexpr complex (const complex< _Up > &__z)
Converting constructor.
constexpr complex __rep () const
_GLIBCXX_ABI_TAG_CXX11 constexpr _Tp imag () const
void imag (_Tp __val)
complex< _Tp > & operator *= (const _Tp &)
Multiply this complex number by a scalar.
template<typename _Up > complex< _Tp > & operator *= (const complex< _Up > &)
Multiply this complex number by another.
complex< _Tp > & operator+= (const _Tp &__t)
Add a scalar to this complex number.
template<typename _Up > complex< _Tp > & operator+= (const complex< _Up > &)
Add another complex number to this one.
complex< _Tp > & operator-= (const _Tp &__t)
Subtract a scalar from this complex number.
template<typename _Up > complex< _Tp > & operator-= (const complex< _Up > &)
Subtract another complex number from this one.
complex< _Tp > & operator/= (const _Tp &)
Divide this complex number by a scalar.
template<typename _Up > complex< _Tp > & operator/= (const complex< _Up > &)
Divide this complex number by another.
complex< _Tp > & operator= (const _Tp &)
Assign a scalar to this complex number.
complex & operator= (const complex &)=default
template<typename _Up > complex< _Tp > & operator= (const complex< _Up > &)
Assign another complex number to this one.
_GLIBCXX_ABI_TAG_CXX11 constexpr _Tp real () const
void real (_Tp __val)
Specializations for float, double, and long double are part of the library. Results with any other type are not guaranteed.
Parameters:
Definition at line 63 of file complex.
Value typedef.
Definition at line 125 of file complex.
Default constructor. First parameter is x, second parameter is y. Unspecified parameters default to 0.
Definition at line 129 of file complex.
Converting constructor.
Definition at line 139 of file complex.
Add a scalar to this complex number.
Definition at line 184 of file complex.
Subtract a scalar from this complex number.
Definition at line 193 of file complex.
Generated automatically by Doxygen for libstdc++ from the source code.