Namespaces
Variants

std::complex<T>:: operator+=,-=,*=,/=

From cppreference.net
(원문에 번역할 텍스트가 없으므로 동일한 HTML 구조를 유지합니다)
기본 템플릿 complex<T>
(1)
complex & operator + = ( const T & other ) ;
(C++20 이전)
constexpr complex & operator + = ( const T & other ) ;
(C++20 이후)
(2)
complex & operator - = ( const T & other ) ;
(C++20 이전)
constexpr complex & operator - = ( const T & other ) ;
(C++20 이후)
(3)
complex & operator * = ( const T & other ) ;
(C++20 이전)
constexpr complex & operator * = ( const T & other ) ;
(C++20 이후)
(4)
complex & operator / = ( const T & other ) ;
(C++20 이전)
constexpr complex & operator / = ( const T & other ) ;
(C++20 이후)
특수화 complex<float>
(1)
complex & operator + = ( float other ) ;
(C++20 이전)
constexpr complex & operator + = ( float other ) ;
(C++20 이후)
(2)
complex & operator - = ( float other ) ;
(C++20 이전)
constexpr complex & operator - = ( float other ) ;
(C++20 이후)
(3)
complex & operator * = ( float other ) ;
(C++20 이전)
constexpr complex & operator * = ( float other ) ;
(C++20 이후)
(4)
complex & operator / = ( float other ) ;
(C++20 이전)
constexpr complex & operator / = ( float other ) ;
(C++20 이후)
특수화 complex<double>
(1)
complex & operator + = ( double other ) ;
(C++20 이전)
constexpr complex & operator + = ( double other ) ;
(C++20 이후)
(2)
complex & operator - = ( double other ) ;
(C++20 이전)
constexpr complex & operator - = ( double other ) ;
(C++20 이후)
(3)
complex & operator * = ( double other ) ;
(C++20 이전)
constexpr complex & operator * = ( double other ) ;
(C++20 이후)
(4)
complex & operator / = ( double other ) ;
(C++20 이전)
constexpr complex & operator / = ( double other ) ;
(C++20 이후)
특수화 complex<long double>
(1)
complex & operator + = ( long double other ) ;
(C++20 이전)
constexpr complex & operator + = ( long double other ) ;
(C++20 이후)
(2)
complex & operator - = ( long double other ) ;
(C++20 이전)
constexpr complex & operator - = ( long double other ) ;
(C++20 이후)
(3)
complex & operator * = ( long double other ) ;
(C++20 이전)
constexpr complex & operator * = ( long double other ) ;
(C++20 이후)
(4)
complex & operator / = ( long double other ) ;
(C++20 이전)
constexpr complex & operator / = ( long double other ) ;
(C++20 이후)
모든 특수화
(5)
template < class X >
complex & operator + = ( const std:: complex < X > & other ) ;
(C++20 이전)
template < class X >
constexpr complex & operator + = ( const std:: complex < X > & other ) ;
(C++20 이후)
(6)
template < class X >
complex & operator - = ( const std:: complex < X > & other ) ;
(C++20 이전)
template < class X >
constexpr complex & operator - = ( const std:: complex < X > & other ) ;
(C++20 이후)
(7)
template < class X >
complex & operator * = ( const std:: complex < X > & other ) ;
(C++20 이전)
template < class X >
constexpr complex & operator * = ( const std:: complex < X > & other ) ;
(C++20 이후)
(8)
template < class X >
complex & operator / = ( const std:: complex < X > & other ) ;
(C++20 이전)
template < class X >
constexpr complex & operator / = ( const std:: complex < X > & other ) ;
(C++20 이후)

복합 산술 및 복소수/스칼라 혼합 산술을 위한 복합 할당 연산자를 구현합니다. 스칼라 인수는 실수 부분이 인수와 같고 허수 부분이 0으로 설정된 복소수로 처리됩니다.

1,5) other * this 에 더합니다.
2,6) other * this 에서 뺍니다.
3,7) other * this 로 곱합니다.
4,8) other * this 를 나눕니다.

매개변수

other - 일치하는 타입의 복소수 또는 스칼라 값 ( float , double , long double )

반환값

* this

참고 항목

복소수에 단항 연산자를 적용합니다
(함수 템플릿)
두 복소수 값 또는 복소수와 스칼라 간의 복소수 연산을 수행합니다
(함수 템플릿)