728x90
[C++] 연산자 오버로딩 프로토타입 & 한계
👨🏻‍💻 programming/◽ c, c++2022. 2. 8. 00:59[C++] 연산자 오버로딩 프로토타입 & 한계

종류 연산자프로토타입 이항 산술 연산자operator+operator-operator*operator/operator%T operator■ ( const T&, const T& ) ;단항 산술 및 비트 연산자operator+operator-operator~T operator■ ( ) const ;선행, 후행 (증가,감소) operator++operator--T& operator■ ( );T& operator■ ( int );대입 연산자operator = T& operator■ ( const T& );축약 산술 대입 연산자operator+=operator-=operator*=operator/=operator%=T& operator■ ( const T& );T& operator■ ( const E& );이항..

728x90
image