algorithms/copy.bi

Summary
algorithms/copy.bi
LicenseCopyright © 2007-2011, FreeBASIC Extended Library Development Group
Functions
CopyCopies elements in the range [first, last) to the range beginning at result.

License

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/p/fb-extended-lib/wiki/License

Functions

Copy

declare function Copy 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.

Parameters

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

Returns

Returns a pointer to one-past the last element copied.

declare function Copy 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.