FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
March 01, 2004

Strict Ownership in STL Containers

(Page 2 of 6)
March 04:

Listing 1: Shared ownership.

struct A;
struct B {
    A* a;
    B(A*); // TBD 1
   ~B();   // TBD 2
}
struct A {
    B* b;
    A(): b(new B) {}
   ~A() {delete b;}
};




    
    
      
    
    
Previous Page | 1 | 2 | 3 | 4 | 5 | 6 Next Page
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK