Util classes for C++