Monthly Archives: November 2018


lightning talk
Paranthesis [crayon-5d5e8c874d5bd650748726/] Returning non-bools [crayon-5d5e8c874d5c6944346750/] Returning bools [crayon-5d5e8c874d5ca676651389/] Reusing data Similar behavior in if/else branches [crayon-5d5e8c874d5cd292990936/] Similar behavior in if/else branches [crayon-5d5e8c874d5d0441600121/] Same behavior on both branches – move it outside the branches. [crayon-5d5e8c874d5d3980780388/] Condition that appears on all steps – Check it only once. [crayon-5d5e8c874d5d6538981875/]

Lightning talk #6 – Refactoring steps


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

std::iota and custom incrementable