Hacker News new | past | comments | ask | show | jobs | submit login

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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: