Chromium Code Reviews| Index: src/list.h |
| =================================================================== |
| --- src/list.h (revision 11245) |
| +++ src/list.h (working copy) |
| @@ -173,10 +173,9 @@ |
| // Perform binary search for an element in an already sorted |
| // list. Returns the index of the element of -1 if it was not found. |
| +template <typename T, typename P> |
| +int SortedListBSearch(const List<T>& list, P cmp); |
|
mnaganov (inactive)
2012/04/10 09:30:55
I think, some words of comments need to be added a
yurys
2012/04/10 09:42:34
Done.
|
| template <typename T> |
| -int SortedListBSearch( |
| - const List<T>& list, T elem, int (*cmp)(const T* x, const T* y)); |
| -template <typename T> |
| int SortedListBSearch(const List<T>& list, T elem); |