...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 float element type so call to float_sort
.
// In header: <boost/sort/spreadsort/spreadsort.hpp> template<typename RandomAccessIter> boost::enable_if_c< !std::numeric_limits< typename std::iterator_traits< RandomAccessIter >::value_type >::is_integer &&std::numeric_limits< typename std::iterator_traits< RandomAccessIter >::value_type >::is_iec559, void >::type spreadsort(RandomAccessIter first, RandomAccessIter last);
If the data type provided is a float or castable-float, float_sort
is used.
Note | |
---|---|
Sorting other data types requires picking between |
Parameters: |
|
||||
Requires: |
[
|
||||
Postconditions: |
The elements in the range [ |