Archive for February, 2006

I love the STL

Saturday, February 4th, 2006

C++ is a great language, specially the STL, templates and generic programming. I love it.
For instance, imagine that you have to wipe some data in vectors after its use. This is common in secure programming, to avoid sensible data to remain in memory longer than really needed.
It’s very easy, just program your own allocator:

#include <memory>

template […]