Standard C++ Library Class Reference
Manuals
Brands
HP Manuals
Server
HP NonStop G-Series
31
32
33
34
35
36
37
38
39
40
//
auto_ptr<X> a = b;
//
// Output the value contained by the underlying pointer.
//
cout << a->get() << endl;
//
// The pointer will be deleted when a is destroyed on
// leaving scope.
//
return 0;
}
Output :
12345
1
...
...
34
35
36
37
38
...
...
516