Fill Data Member Function

Fills the array. If the destination range is a different type than the source range, the values are converted using the C++ static_cast operator. If there are more values in the source range than the destination, the values are repeated until all the space in the destination is exhausted.

Prototype

int32 Fill( Uint32Iterator first, Uint32Iterator last, TypedIterator dest )

Parameters

Parameter Type Parameter Name Documentation
<Uint32Iterator>firstAn iterator at the start of the range you wish to fill.
<Uint32Iterator>lastAn iterator at the end of the range you wish to fill.
<TypedIterator>destAn iterator to the start of the source range, or an iterator that points at a single value. You don't need an end iterator here because the all iterators specify a position and a count. The span of this iterator will be copied, from the start to end, over all the space in the destination.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.