Iterator-based aggregation: All versions of C++