C++ utilties