suite of C++ utility functions and wrappers