class template
std::complex
- Header
<complex>- Draft
- [complex]
- Scope
std- cppreference
- std::complex
Synopsis
template<class T>
class complex;Member types
| Name | Declaration |
|---|---|
value_typetype alias · member type | = T |
Member functions
| Name | Declaration |
|---|---|
complexconstructor · 3 overloads | complex(const complex& other) +2 more |
operator=operator · 3 overloads | complex& operator=(const complex& other) +2 more |
imagmember function · 2 overloads | T imag() const +1 more |
operator*=operator · 2 overloads | complex& operator*=(const T& rhs) +1 more |
operator+=operator · 2 overloads | complex& operator+=(const T& rhs) +1 more |
operator-=operator · 2 overloads | complex& operator-=(const T& rhs) +1 more |
operator/=operator · 2 overloads | complex& operator/=(const T& rhs) +1 more |
realmember function · 2 overloads | T real() const +1 more |