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

Which is why the functions in <algorithm> and many more STL headers are just that; templated functions. There's nothing wrong with them.

However, modern C++ enables safer and clearer semantics than what raw pointers offer, such as references or smart pointers.



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

Search: