misc. functional utilities for C++,STL classes