algorithms/ copybackward.bi

Summary
algorithms/ copybackward.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
Functions
CopyBackwardCopies elements in the range [//first, last//) to the range beginning at //result// backwards.

License

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

Functions

CopyBackward

declare function CopyBackward overload (
   byval first as const fbext_TypeName(T_) ptr,
   byval last as const fbext_TypeName(T_) ptr,
   byval result as fbext_TypeName(T_) ptr
) as fbext_TypeName(T_) ptr

Copies elements in the range [//first, last//) to the range beginning at //result// backwards.

Parameters

firstA pointer to the first element to be copied.
lastA pointer to one-past the last element to be copied.
resultA pointer to one-past the end of the range that will recieve the copies.

Returns

Returns a pointer to the first element copied.

declare function CopyBackward overload (
   byval first as const fbext_TypeName(T_) ptr,
   byval last as const fbext_TypeName(T_) ptr,
   byval result as fbext_TypeName(T_) ptr
) as fbext_TypeName(T_) ptr
Copies elements in the range [//first, last//) to the range beginning at //result// backwards.