iota


code
Definition [crayon-5c6d2cea1cd3c049422972/] Fills the range [first, last) with sequentially increasing values, starting with value and repetitively evaluating ++value.   Syntax [crayon-5c6d2cea1cd49530375435/] But now let’s create a custom incrementable class. Iota is working with a T type, so we only need to overload the ++ operator. [crayon-5c6d2cea1cd50262340134/] So what do we have here? I’ve added a […]

std::iota and custom incrementable