Monthly Archives: November 2018


lightning talk
Paranthesis [crayon-5daf001a2495b610880230/] Returning non-bools [crayon-5daf001a24965595404274/] Returning bools [crayon-5daf001a24969864420761/] Reusing data Similar behavior in if/else branches [crayon-5daf001a2496c539391369/] Similar behavior in if/else branches [crayon-5daf001a24970737904284/] Same behavior on both branches – move it outside the branches. [crayon-5daf001a24973580487750/] Condition that appears on all steps – Check it only once. [crayon-5daf001a24977878632757/]

Lightning talk #6 – Refactoring steps


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

std::iota and custom incrementable