General purpose C++ library