...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::sort::spreadsort::spreadsort — Generic spreadsort
variant detecting string element type so call to string_sort
for std::wstrings
.
// In header: <boost/sort/spreadsort/spreadsort.hpp> template<typename RandomAccessIter> boost::enable_if_c< is_same< typename std::iterator_traits< RandomAccessIter >::value_type, typename std::wstring >::value &&sizeof(wchar_t)==2, void >::type spreadsort(RandomAccessIter first, RandomAccessIter last);
If the data type provided is a wstring, string_sort
is used.
Note | |
---|---|
Sorting other data types requires picking between |
Parameters: |
|
||||
Requires: |
[
|
||||
Postconditions: |
The elements in the range [ |