Skip to main content
Post Closed as "Duplicate" by Jan Schultke c++
added 82 characters in body
Source Link
Alan
  • 5.3k
  • 7
  • 34
  • 38
iarray<T>& operator = (iarray<T>& v) 

Why the return type is iarray<T>& not iarray<T> ?

UPDATE

Can someone elaborate in great detail why iarray<T> const &v ?

iarray<T>& operator = (iarray<T>& v) 

Why the return type is iarray<T>& not iarray<T> ?

iarray<T>& operator = (iarray<T>& v) 

Why the return type is iarray<T>& not iarray<T> ?

UPDATE

Can someone elaborate in great detail why iarray<T> const &v ?

Source Link
Alan
  • 5.3k
  • 7
  • 34
  • 38

operator overloading

iarray<T>& operator = (iarray<T>& v) 

Why the return type is iarray<T>& not iarray<T> ?