In the STL delivered with the gcc-4.7.2 the std::remove algorithm in `/usr/include/c++/4.7.2/bits/stl_algo.h` is more efficient than the previous implementation. The only thing I forgot is to remove the remaining elements:
```c++
end = std::remove(pnt_vec->begin(), pnt_vec->end(), nullptr);
pnt_vec->erase(end, pnt_vec->end());