General C++ utility library