A general c++ library