3 ms·
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++ en
by Longhanks 8y ago
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.