algorithms/ | |
License | Copyright © 2007-2011, FreeBASIC Extended Library Development Group |
Functions | |
Find | Finds the first element in the range [first, last) that matches a value x. |
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 Find overload ( byval first as const fbext_TypeName(T_) ptr, byval last as const fbext_TypeName(T_) ptr, byref x as const fbext_TypeName(T_) ) as const fbext_TypeName(T_) ptr
Finds the first element in the range [first, last) that matches a value x.
first | A pointer to the first element in the range. |
last | A pointer to one-past the last element in the range. |
x | The value to find. |
Returns a pointer to the element, or //last// if no such element is found.
Finds the first element in the range [first, last) that matches a value x.
declare function Find overload ( byval first as const fbext_TypeName(T_) ptr, byval last as const fbext_TypeName(T_) ptr, byref x as const fbext_TypeName(T_) ) as const fbext_TypeName(T_) ptr