algorithms/ | |
License | Copyright © 2007-2011, FreeBASIC Extended Library Development Group |
Functions | |
ForEach | Applies an operation //op// for every element in the range [//first//, //last//). |
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 sub ForEach overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval op_ as sub ( byref as fbext_TypeName(T_) ) )
Applies an operation //op// for every element in the range [//first//, //last//).
first | A pointer to the first element in the range. |
last | A pointer one-past the last element in the range. |
op | The operation to perform. |
Applies an operation //op// for every element in the range [//first//, //last//).
declare sub ForEach overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval op_ as sub ( byref as fbext_TypeName(T_) ) )