Monthly Archives: November 2018


lightning talk
Paranthesis [crayon-5cb9e7ef9d445697355162/] Returning non-bools [crayon-5cb9e7ef9d453228372290/] Returning bools [crayon-5cb9e7ef9d459556032600/] Reusing data Similar behavior in if/else branches [crayon-5cb9e7ef9d45e279947094/] Similar behavior in if/else branches [crayon-5cb9e7ef9d464620361313/] Same behavior on both branches – move it outside the branches. [crayon-5cb9e7ef9d46a273322965/] Condition that appears on all steps – Check it only once. [crayon-5cb9e7ef9d470975268484/]

Lightning talk #6 – Refactoring steps


code
Definition [crayon-5cb9e7ef9ed9d134931973/] Fills the range [first, last) with sequentially increasing values, starting with value and repetitively evaluating ++value.   Syntax [crayon-5cb9e7ef9eda7640046769/] 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-5cb9e7ef9edad211625320/] So what do we have here? I’ve added a […]

std::iota and custom incrementable