Utilites for C++ Rewrite