Avoid unnecessary sorting in print_columns
std::map is a sorted associative container. We don't need to first copy it into a vector and sort that one. print_columns has been refactored as a template function and makes use of this property.
Loading
Please register or sign in to comment