Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It has a constructor (to initialize the resource), a destructor (to release the resource), copy/move constructors, and lets you get access to the underlying resource. See http://en.cppreference.com/w/cpp/memory/shared_ptr for an example.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: