c++ Programming Glossary: automatic_pointer
Why does the use of 'new' cause memory leaks? http://stackoverflow.com/questions/8839943/why-does-the-use-of-new-cause-memory-leaks that deletes it automatically. template typename T class automatic_pointer public automatic_pointer T pointer pointer pointer destructor.. template typename T class automatic_pointer public automatic_pointer T pointer pointer pointer destructor gets called upon cleanup.. called upon cleanup in this case we want to use delete ~automatic_pointer delete pointer emulate pointers with this we can write p T operator..
|