General C++ library