algorithms/ | |
License | Copyright © 2007-2011, FreeBASIC Extended Library Development Group |
Functions | |
Transform | Applies an operation //op// on each element in the range [//first//, //last//), storing the results of the transformation in the range starting at //result//. |
Transform | Applies an operation //op// on each of the corresponding elements in the ranges [//first//, //last//) and [//first2//, //first2// + //last//-//first//), storing the results of the transformation in the range starting at //result//. |
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 Transform overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval result as fbext_TypeName(T_) ptr, byval op as function ( byref as fbext_TypeName(T_) ) as fbext_TypeName(T_) ) as fbext_TypeName(T_) ptr
Applies an operation //op// on each element in the range [//first//, //last//), storing the results of the transformation in the range starting at //result//.
first | A pointer to the first element in the range. |
last | A pointer to one-past the last element in the range. |
result | A pointer to the first element in the range to recieve the result of the transformation. |
op | The operation used to transform the elements. |
Returns a pointer to one-past the last element copied.
declare function Transform overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval first2 as fbext_TypeName(T_) ptr, byval result as fbext_TypeName(T_) ptr, byval op as function ( byref as fbext_TypeName(T_), byref as fbext_TypeName(T_) ) as fbext_TypeName(T_) ) as fbext_TypeName(T_) ptr
Applies an operation //op// on each of the corresponding elements in the ranges [//first//, //last//) and [//first2//, //first2// + //last//-//first//), storing the results of the transformation in the range starting at //result//.
first | A pointer to the first element in the first range. |
last | A pointer to one-past the last element in the first range. |
first2 | A pointer to the first element in the second range. |
result | A pointer to the first element in the range to recieve the result of the transformation. |
op | The operation used to transform the elements. |
Returns a pointer to one-past the last element copied.
Applies an operation //op// on each element in the range [//first//, //last//), storing the results of the transformation in the range starting at //result//.
declare function Transform overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval result as fbext_TypeName(T_) ptr, byval op as function ( byref as fbext_TypeName(T_) ) as fbext_TypeName(T_) ) as fbext_TypeName(T_) ptr