algorithms/ replacecopy.bi | |
License | Copyright © 2009, FreeBASIC Extended Library Development Group |
Functions | |
ReplaceCopy | Replaces each element in the range [//first//, //last//) that has a certain value //oldvalue// with another value //newvalue// and copies the results to the range beginning at //result//. |
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 ReplaceCopy overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval result as fbext_TypeName(T_) ptr, byref oldvalue as const fbext_TypeName(T_), byref newvalue as const fbext_TypeName(T_) ) as fbext_TypeName(T_) ptr
Replaces each element in the range [//first//, //last//) that has a certain value //oldvalue// with another value //newvalue// and copies the results to the range beginning 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 that will hold the results. |
oldvalue | The value to be replaced. |
newvalue | The value to replace with. |
Returns the last element copied.
Replaces each element in the range [//first//, //last//) that has a certain value //oldvalue// with another value //newvalue// and copies the results to the range beginning at //result//.
declare function ReplaceCopy overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval result as fbext_TypeName(T_) ptr, byref oldvalue as const fbext_TypeName(T_), byref newvalue as const fbext_TypeName(T_) ) as fbext_TypeName(T_) ptr