//don't sort unless there are at least two items to Compare
if (count < 2)
continue;
- //using std::sort if its worst-case is better
+ //using boost::sort::pdqsort if its worst-case is better
if (count < max_size)
- std::sort(lastPos, bin_cache[u],
+ boost::sort::pdqsort(lastPos, bin_cache[u],
offset_less_than<Data_type, Unsigned_char_type>(char_offset + 1));
else
string_sort_rec<RandomAccessIter, Unsigned_char_type>(lastPos,
//don't sort unless there are at least two items to Compare
if (count < 2)
continue;
- //using std::sort if its worst-case is better
+ //using boost::sort::pdqsort if its worst-case is better
if (count < max_size)
- std::sort(lastPos, bin_cache[u], offset_greater_than<Data_type,
+ boost::sort::pdqsort(lastPos, bin_cache[u], offset_greater_than<Data_type,
Unsigned_char_type>(char_offset + 1));
else
reverse_string_sort_rec<RandomAccessIter, Unsigned_char_type>
//don't sort unless there are at least two items to Compare
if (count < 2)
continue;
- //using std::sort if its worst-case is better
+ //using boost::sort::pdqsort if its worst-case is better
if (count < max_size)
- std::sort(lastPos, bin_cache[u], offset_char_less_than<Data_type,
+ boost::sort::pdqsort(lastPos, bin_cache[u], offset_char_less_than<Data_type,
Get_char, Get_length>(char_offset + 1));
else
string_sort_rec<RandomAccessIter, Unsigned_char_type, Get_char,
//don't sort unless there are at least two items to Compare
if (count < 2)
continue;
- //using std::sort if its worst-case is better
+ //using boost::sort::pdqsort if its worst-case is better
if (count < max_size)
- std::sort(lastPos, bin_cache[u], comp);
+ boost::sort::pdqsort(lastPos, bin_cache[u], comp);
else
string_sort_rec<RandomAccessIter, Unsigned_char_type, Get_char,
Get_length, Compare>
//don't sort unless there are at least two items to Compare
if (count < 2)
continue;
- //using std::sort if its worst-case is better
+ //using boost::sort::pdqsort if its worst-case is better
if (count < max_size)
- std::sort(lastPos, bin_cache[u], comp);
+ boost::sort::pdqsort(lastPos, bin_cache[u], comp);
else
reverse_string_sort_rec<RandomAccessIter, Unsigned_char_type,
Get_char, Get_length, Compare>
string_sort(RandomAccessIter first, RandomAccessIter last,
Unsigned_char_type)
{
- //Warning that we're using std::sort, even though string_sort was called
+ //Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_WARNING( sizeof(Unsigned_char_type) <= 2 );
- std::sort(first, last);
+ boost::sort::pdqsort(first, last);
}
//Holds the bin vector and makes the initial recursive call
{
typedef typename std::iterator_traits<RandomAccessIter>::value_type
Data_type;
- //Warning that we're using std::sort, even though string_sort was called
+ //Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_WARNING( sizeof(Unsigned_char_type) <= 2 );
- std::sort(first, last, std::greater<Data_type>());
+ boost::sort::pdqsort(first, last, std::greater<Data_type>());
}
//Holds the bin vector and makes the initial recursive call
string_sort(RandomAccessIter first, RandomAccessIter last,
Get_char get_character, Get_length length, Unsigned_char_type)
{
- //Warning that we're using std::sort, even though string_sort was called
+ //Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_WARNING( sizeof(Unsigned_char_type) <= 2 );
- std::sort(first, last);
+ boost::sort::pdqsort(first, last);
}
//Holds the bin vector and makes the initial recursive call
string_sort(RandomAccessIter first, RandomAccessIter last,
Get_char get_character, Get_length length, Compare comp, Unsigned_char_type)
{
- //Warning that we're using std::sort, even though string_sort was called
+ //Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_WARNING( sizeof(Unsigned_char_type) <= 2 );
- std::sort(first, last, comp);
+ boost::sort::pdqsort(first, last, comp);
}
//Holds the bin vector and makes the initial recursive call
reverse_string_sort(RandomAccessIter first, RandomAccessIter last,
Get_char get_character, Get_length length, Compare comp, Unsigned_char_type)
{
- //Warning that we're using std::sort, even though string_sort was called
+ //Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_WARNING( sizeof(Unsigned_char_type) <= 2 );
- std::sort(first, last, comp);
+ boost::sort::pdqsort(first, last, comp);
}
}
}