Provided by: libstdc++-9-doc_9.2.1-9ubuntu2_all bug

NAME

       std::complex< _Tp >

SYNOPSIS

   Public Types
       typedef _Tp value_type
           Value typedef.

   Public Member Functions
       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
       _GLIBCXX20_CONSTEXPR void imag (_Tp __val)
       _GLIBCXX20_CONSTEXPR complex< _Tp > & operator*= (const _Tp &)
           Multiply this complex number by a scalar.
       template<typename _Up > _GLIBCXX20_CONSTEXPR complex< _Tp > & operator*= (const complex<
           _Up > &)
           Multiply this complex number by another.
       _GLIBCXX20_CONSTEXPR complex< _Tp > & operator+= (const _Tp &__t)
           Add a scalar to this complex number.
       template<typename _Up > _GLIBCXX20_CONSTEXPR complex< _Tp > & operator+= (const complex<
           _Up > &)
           Add another complex number to this one.
       _GLIBCXX20_CONSTEXPR complex< _Tp > & operator-= (const _Tp &__t)
           Subtract a scalar from this complex number.
       template<typename _Up > _GLIBCXX20_CONSTEXPR complex< _Tp > & operator-= (const complex<
           _Up > &)
           Subtract another complex number from this one.
       _GLIBCXX20_CONSTEXPR complex< _Tp > & operator/= (const _Tp &)
           Divide this complex number by a scalar.
       template<typename _Up > _GLIBCXX20_CONSTEXPR complex< _Tp > & operator/= (const complex<
           _Up > &)
           Divide this complex number by another.
       _GLIBCXX20_CONSTEXPR complex< _Tp > & operator= (const _Tp &)
           Assign a scalar to this complex number.
       _GLIBCXX20_CONSTEXPR complex & operator= (const complex &)=default
       template<typename _Up > _GLIBCXX20_CONSTEXPR complex< _Tp > & operator= (const complex<
           _Up > &)
           Assign another complex number to this one.
       _GLIBCXX_ABI_TAG_CXX11 constexpr _Tp real () const
       _GLIBCXX20_CONSTEXPR void real (_Tp __val)

Detailed Description

   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.

Member Typedef Documentation

   template<typename _Tp > typedef _Tp std::complex< _Tp >::value_type
       Value typedef.

       Definition at line 126 of file complex.

Constructor & Destructor Documentation

   template<typename _Tp > constexpr std::complex< _Tp >::complex (const _Tp & __r = _Tp(), const
       _Tp & __i = _Tp()) [inline]
       Default constructor. First parameter is x, second parameter is y. Unspecified parameters
       default to 0.

       Definition at line 130 of file complex.

   template<typename _Tp > template<typename _Up > constexpr std::complex< _Tp >::complex (const
       complex< _Up > & __z) [inline]
       Converting constructor.

       Definition at line 140 of file complex.

Member Function Documentation

   template<typename _Tp > _GLIBCXX20_CONSTEXPR complex<_Tp>& std::complex< _Tp >::operator+=
       (const _Tp & __t) [inline]
       Add a scalar to this complex number.

       Definition at line 185 of file complex.

   template<typename _Tp > _GLIBCXX20_CONSTEXPR complex<_Tp>& std::complex< _Tp >::operator-=
       (const _Tp & __t) [inline]
       Subtract a scalar from this complex number.

       Definition at line 194 of file complex.

Author

       Generated automatically by Doxygen for libstdc++ from the source code.