libstdc++
GNU C++ library
std::complex< _Tp > Class Template Reference
Collaboration diagram for std::complex< _Tp >:
Collaboration graph

Public Types

typedef _Tp value_type
 

Public Member Functions

constexpr complex (const _Tp &__r=_Tp(), const _Tp &__i=_Tp())
 
constexpr complex (const complex &)=default
 
template<typename _Up >
constexpr complex (const complex< _Up > &__z)
 
 __attribute ((__abi_tag__("cxx11"))) const expr _Tp imag() const
 
 __attribute ((__abi_tag__("cxx11"))) const expr _Tp real() const
 
constexpr complex __rep () const
 
constexpr void imag (_Tp __val)
 
constexpr complex< _Tp > & operator*= (const _Tp &)
 
template<typename _Up >
constexpr complex< _Tp > & operator*= (const complex< _Up > &)
 
constexpr complex< _Tp > & operator+= (const _Tp &__t)
 
template<typename _Up >
constexpr complex< _Tp > & operator+= (const complex< _Up > &)
 
constexpr complex< _Tp > & operator-= (const _Tp &__t)
 
template<typename _Up >
constexpr complex< _Tp > & operator-= (const complex< _Up > &)
 
constexpr complex< _Tp > & operator/= (const _Tp &)
 
template<typename _Up >
constexpr complex< _Tp > & operator/= (const complex< _Up > &)
 
constexpr complex< _Tp > & operator= (const _Tp &)
 
constexpr complexoperator= (const complex &)=default
 
template<typename _Up >
constexpr complex< _Tp > & operator= (const complex< _Up > &)
 
constexpr void real (_Tp __val)
 

Private Attributes

_Tp _M_imag
 
_Tp _M_real
 

Detailed Description

template<typename _Tp>
class 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
TpType of real and imaginary values.

Definition at line 127 of file std/complex.


The documentation for this class was generated from the following file: