Skip to content

Commit

Permalink
integer_sort_objects_small.hpp - comments indented and updated
Browse files Browse the repository at this point in the history
  • Loading branch information
fenilgmehta committed Jul 17, 2019
1 parent 9561bd2 commit d5ca640
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/integer_sort_objects_small.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
namespace ir_sort {
namespace object_integer_sort_functions {

//#########################################################################################
// ##
// C O U N T I N G S O R T - O B J E C T S ##
// ##
//#########################################################################################
//#########################################################################################
// ##
// C O U N T I N G S O R T - O B J E C T S ##
// ##
//#########################################################################################

template<typename RandomAccessIterator, typename ArrayIndexType, typename ArrayValueType, typename myGetIndex>
inline void
Expand Down Expand Up @@ -116,11 +116,11 @@ namespace ir_sort {
delete[] box;
}

//#########################################################################################
// ##
// R A D I X S O R T - A S C E N D I N G O R D E R - O B J E C T ##
// ##
//#########################################################################################
//#########################################################################################
// ##
// R A D I X S O R T - A S C E N D I N G O R D E R - O B J E C T ##
// ##
//#########################################################################################


// Sorts the +ve numbers in ascending order
Expand Down Expand Up @@ -304,11 +304,11 @@ namespace ir_sort {
// delete[] copyArray;
}

//#########################################################################################
// ##
// R A D I X S O R T - D E S C E N D I N G O R D E R - O B J E C T ##
// ##
//#########################################################################################
//#########################################################################################
// ##
// R A D I X S O R T - D E S C E N D I N G O R D E R - O B J E C T ##
// ##
//#########################################################################################

// Sorts the +ve numbers in descending order
template<typename ArrayValueType, typename ArrayPointerType, typename myGetIndex>
Expand Down Expand Up @@ -499,11 +499,11 @@ namespace ir_sort {
delete[] copyArray;
}

//#########################################################################################
// ##
// I N T E G E R S O R T - O B J E C T S ##
// ##
//#########################################################################################
//#########################################################################################
// ##
// I N T E G E R S O R T - O B J E C T S ##
// ##
//#########################################################################################

// integer_radix_sort
// all the elements from arr[low] to arr[high] are sorted, both low and high inclusive
Expand Down Expand Up @@ -563,7 +563,7 @@ namespace ir_sort {


// ==========================================================
// merge_sort
// pdqsort
if (sortArrayLength < pdqsort_THRESHOLD) {
boost::sort::pdqsort(&arr[low], &arr[high]);
return;
Expand Down

0 comments on commit d5ca640

Please sign in to comment.