Last Data Member Function

Returns an iterator positioned at the end of the collection.

Prototype

Uint8Iterator Last()

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, 0, 0, 0 );
auto Uint8ArrayView src_view = src.GetView();

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

auto Uint8Iterator first = dst.First();
auto Uint8Iterator last  = dst.Last();

auto Uint8ArrayAlgorithms a_auAlgorithms;
a_auAlgorithms.Fill( src_view.First, src_view.Last, 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