C++ utilities