Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: C++
Expertise: Beginner
Jul 18, 1997

Reference Counted Implementation

Question:
For a reference counted implementation, how is the operator+= member function coded? The function receives
 (const String & rhs)
and returns String &. The returned String &String &Answer:
operator+= should follow all the rules of operator = ., i.e. it should not return a new string.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap