BindIterators Data Member Function

Binds iterators to this object.

Prototype

int32 BindIterators( Uint8Iterator first, Uint8Iterator last )

Parameters

Parameter Type Parameter Name Documentation
<Uint8Iterator>firstAn iterator to be bound at the start of this object's underlying collection.
<Uint8Iterator>lastA pointer to the iterator that represents the end of the range.

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";
import library "type_color_array_util.ssl";

auto Color src = new Color( 0, 32, 128, 255 );
auto Uint8Iterator src_first = src.First();

auto Color fill = new Color( 0, 0, 0, 0 );
auto ColorArray dst = new ColorArray( 4, fill );

auto Uint8Iterator dst_first;
auto Uint8Iterator dst_last;
dst.BindIterators( dst_first, dst_last );

auto Uint8ArrayAlgorithms a_auAlgorithms;
a_auAlgorithms.Fill( dst_first, dst_last, src_first );

LibColorArray.Out2D( dst, 4, 4 );

Results

// Color is packed in BGRA order interally, so these results are correct.
128, 32, 0, 255,
128, 32, 0, 255,
128, 32, 0, 255,
128, 32, 0, 255