algorithms/ | |
License | Copyright © 2007-2011, FreeBASIC Extended Library Development Group |
Functions | |
CountIf | Finds the number of elements in the range [first, last) that satisfy a predicate pred. |
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 CountIf overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval pred as fbext_Predicate(T_) ) as ext.SizeType
Finds the number of elements in the range [first, last) that satisfy a predicate pred.
first | A pointer to the first element in the range to search. |
last | A pointer to one-past the last element in the range to search. |
pred | A predicate to test the elements with. |
Returns the number of found elements, or zero (0) if no such elements are found.
Finds the number of elements in the range [first, last) that satisfy a predicate pred.
declare function CountIf overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval pred as fbext_Predicate(T_) ) as ext.SizeType