C++ utils.