Google
CPointList.BinarySearch Method
Class
Pascal
function BinarySearch(const Item: CPoint; Compare: CPointSortCompare): Integer;
Description

Function CPointList.BinarySearch 

Performs a binary search over the list and stops at the first item that matches the passed one. The list needs to be sorted for this kind of find to work and the same Compare function needs to be used for sort and search! If the list contains duplicate items binary search will find one of them but not necessarily the first! The implementation has not been optimized for speed in any way!

Related Information