Helper utilities for C++