general purpose library in c++