algorithms/ count.bi | |
License | Copyright © 2009, FreeBASIC Extended Library Development Group |
Functions | |
Count | Finds the number of elements in the range [first, last) that are equal to a value x. |
Copyright © 2009, 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- /p- /fb-extended-lib- /wiki- /License
declare function Count overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byref x as const fbext_TypeName(T_) ) as ext.SizeType
Finds the number of elements in the range [first, last) that are equal to a value x.
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. |
x | The value to search for. |
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 are equal to a value x.
declare function Count overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byref x as const fbext_TypeName(T_) ) as ext.SizeType