Collect and group C++ generation primitives.