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

> this is just handling index allocation, release and avoiding dangling manually

No, it is abstracted away. You just have to follow best practices when writing a library.

  resource foo(...); // This gets freed at the end of scope. See RAII.
  auto x = make_unique<resource>(...); // can be moved, freed when owner is.
  auto y = make_shared<resource>(...); // freed on zero reference count




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

Search: