A
asit
auto_ptr has the attribute release(). then what is the need of sink function ??
auto_ptr has the attribute release(). then what is the need of sink function ??
could you translate that question to English, please
Please read this
http://www.gotw.ca/publications/using_auto_ptr_effectively.htm
please read "Ownership, Sources, and Sinks" section
I asked this because I found certain code snippets(in application, not
in example) which mostly uses Source-Sink, not release method of the
auto_ptr class.
Is there any advantage of using sink() instead of release() of auto_ptr
???
I asked this because I found certain code snippets(in application, not in example) which mostly uses Source-Sink, not release method of the auto_ptr class.
Is there any advantage of using sink() instead of release() of auto_ptr ???
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.