The top-level spreadsort function has specific overloads targeting std::string and std::wstring specifically. With C++17 around the corner, these overloads could also accept std::string_view and std::wstring_view when they are available.
It notably helps std::string_view to be more of a "drop-in replacement for std::string" as much as possible.
By the way, is string_spread_sort also intended to sort collections of std::vector<char> or std::deque<char>, or is it not suited for these cases?
The top-level
spreadsortfunction has specific overloads targetingstd::stringandstd::wstringspecifically. With C++17 around the corner, these overloads could also acceptstd::string_viewandstd::wstring_viewwhen they are available.It notably helps
std::string_viewto be more of a "drop-in replacement forstd::string" as much as possible.By the way, is
string_spread_sortalso intended to sort collections ofstd::vector<char>orstd::deque<char>, or is it not suited for these cases?