Illustrated usage examples

Iterating from 0.0 to 1.0 at a step length of 0.1 will result in ten steps, and eleven values evaluated:

Values when iterating from 0.0 to 1.0 with eleven values

Iterating from 0.0 to 1.0 at a step length of 0.33 will result in three steps and four values:

Values when iterating from 0.0 to 1.0 with four values

Get C++ High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.