algorithms/ | |
License | Copyright © 2007-2011, FreeBASIC Extended Library Development Group |
Functions | |
MinElement | Returns a pointer to the element in a range with the minimum value. |
MinElement | Returns a pointer to the element in a range using a predicate. |
Copyright © 2007-2011, FreeBASIC Extended Library Development Group
Distributed under the FreeBASIC Extended Library Group license. See accompanying file LICENSE.txt or copy at http://code.google.com
declare function MinElement overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr ) as fbext_TypeName(T_) ptr
Returns a pointer to the element in a range with the minimum value.
first | A pointer to the first element in the range. |
last | A pointer to one-past the element in the range. |
Returns a pointer to the element in the range with the minimum value, or last if the range is empty.
declare function MinElement overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval pred as function ( byref as const fbext_TypeName(T_), byref as const fbext_TypeName(T_) ) as bool ) as fbext_TypeName(T_) ptr
Returns a pointer to the element in a range using a predicate.
first | A pointer to the first element in the range. |
last | A pointer to one-past the element in the range. |
pred | A function to compare elements with. |
Returns a pointer to the element in the range which satisfies the predicate against all other elements, or last if the range is empty.
Returns a pointer to the element in a range with the minimum value.
declare function MinElement overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr ) as fbext_TypeName(T_) ptr