Returning references

Returning references

Post by Jochen K"upp » Tue, 15 Sep 1998 04:00:00




> I would like to know why usually people defines the = (assign) operator to
> return a reference to an object, (p.e. the basic_string class of the STL).

> We'are going to start a large project and we would like to understand some
> basic concepts.

You probably would better take a look at Scott Meyers "Effective C++" and
"More Effective C++" books if you are going to use C++.

Greetings,
Jochen
-----------------------------------------------------------------------
  Jochen K"upper


  Institut f"ur Physikalische Chemie I
  Universit"atsstr. 1, Geb 26.43 Raum 02.29    phone ++49-211-8113681
  40225 D"usseldorf                            fax   ++49-211-8115195
  Germany             http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------