FindMinMax Data Member Function

Populates an array with the minimum and maximum values in the source array. Does not alter the source array. Returns 1 to indicate success; returns 0 to indicate failure.

Prototype

int32 FindMinMax( Uint32Iterator first, Uint32Iterator last, Uint32Iterator dest )

Parameters

Parameter Type Parameter Name Documentation
<Uint32Iterator>firstAn iterator at the start of the source data.
<Uint32Iterator>lastAn iterator at the end of the source data.
<Uint32Iterator>destAn iterator for a destination with enough storage for 2 values.

Examples

Copy Text To Clipboard

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