In this post I analyse and discuss the performance of raw pointers vs smart pointers in few C++11 benchmarks. The operations tested are creation, copy, data access and destruction.
Tag Archive: C++11
If you’re working on some C++ code and you need to sort the elements in a container which provides random access, like a std::vector, the simplest and quickest option is using the function std::sort from the <algorithm> functions. In this post I’m showing…