A small collection of useful C++ utility functions