Why does an iterator with a vector as state variable allocate?

The @inline annotations on iterate are important (just as they are in sguare’s code). They solve the return value allocating problem.

2 Likes