algorithms/ | |
License | Copyright © 2007-2011, FreeBASIC Extended Library Development Group |
Functions | |
Equal | Tests two ranges of elements [first, last) and beginning at first2 for equivalence. |
Equal | Tests two ranges of elements [first, last) and beginning at first2 for equivalence using 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 Equal overload ( byval first1 as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval first2 as fbext_TypeName(T_) ptr ) as bool
Tests two ranges of elements [first, last) and beginning at first2 for equivalence.
first1 | A pointer to the first element in the first range. |
last | A pointer to one-past the end of the last element in the first range. |
first2 | A pointer to the first element in the second range. |
Returns true if all elements in each range compare equal, false otherwise.
declare function Equal ( byval first1 as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval first2 as fbext_TypeName(T_) ptr, byval pred as function ( byref as const fbext_TypeName(T_), byref as const fbext_TypeName(T_) ) as bool ) as bool
Tests two ranges of elements [first, last) and beginning at first2 for equivalence using a predicate pred.
first1 | A pointer to the first element in the first range. |
last | A pointer to one-past the end of the last element in the first range. |
first2 | A pointer to the first element in the second range. |
pred | A binary predicate to compare elements. |
Returns true if all corresponding elements in each range satisfy the predicate, false otherwise.
Tests two ranges of elements [first, last) and beginning at first2 for equivalence.
declare function Equal overload ( byval first1 as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval first2 as fbext_TypeName(T_) ptr ) as bool