| Index: src/list.h
|
| diff --git a/src/list.h b/src/list.h
|
| index 00cbd40312025ad8ba2fcc40a1f17b2a8409cd22..b636449c423b9d9ea7a184de78a3580a49c5780e 100644
|
| --- a/src/list.h
|
| +++ b/src/list.h
|
| @@ -149,12 +149,15 @@ class List {
|
| void Iterate(Visitor* visitor);
|
|
|
| // Sort all list entries (using QuickSort)
|
| - void Sort(int (*cmp)(const T* x, const T* y), size_t start, size_t length);
|
| - void Sort(int (*cmp)(const T* x, const T* y));
|
| + template <typename CompareFunction>
|
| + void Sort(CompareFunction cmp, size_t start, size_t length);
|
| + template <typename CompareFunction>
|
| + void Sort(CompareFunction cmp);
|
| void Sort();
|
| - void StableSort(int (*cmp)(const T* x, const T* y), size_t start,
|
| - size_t length);
|
| - void StableSort(int (*cmp)(const T* x, const T* y));
|
| + template <typename CompareFunction>
|
| + void StableSort(CompareFunction cmp, size_t start, size_t length);
|
| + template <typename CompareFunction>
|
| + void StableSort(CompareFunction cmp);
|
| void StableSort();
|
|
|
| INLINE(void Initialize(int capacity,
|
|
|