shared_ptr< unique_ptr< Data > >?
References
Reference NO 1
http://en.wikipedia.org/wiki/Smart_pointer
Reference NO 2
http://msdn.microsoft.com/en-us/library/vstudio/hh279674.aspx
Reference NO 3
http://herbsutter.com/2012/01/20/gotw-103-smart-pointers-part-1-difficulty-310/
Reference NO 4
http://stackoverflow.com/questions/9733932/is-it-possible-to-introduce-automatic-reference-counting-arc-to-c
Reference NO 5
http://eli.thegreenplace.net/2012/06/20/c11-using-unique_ptr-with-standard-library-containers/
Reference NO 6
http://programmers.stackexchange.com/questions/133302/stdshared-ptr-as-a-last-resort
Reference NO 7
http://www.informit.com/articles/article.aspx?p=1944072
Reference NO 8
http://pkisensee.wordpress.com/2008/01/17/shared_ptr-swap-and-more/
No comments:
Post a Comment