Yearly Archives: 2018

lightning talk
Paranthesis [crayon-5daeff7a383a4007605472/] Returning non-bools [crayon-5daeff7a383ad223262377/] Returning bools [crayon-5daeff7a383b1588693118/] Reusing data Similar behavior in if/else branches [crayon-5daeff7a383b5164476365/] Similar behavior in if/else branches [crayon-5daeff7a383b9474059597/] Same behavior on both branches – move it outside the branches. [crayon-5daeff7a383bd519720138/] Condition that appears on all steps – Check it only once. [crayon-5daeff7a383c0554180057/]

Lightning talk #6 – Refactoring steps

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

std::iota and custom incrementable

Syntax [crayon-5daeff7a399fb025882675/] Usage / Usability This feature is introduced mainly to take care of the pitfalls generated by using the (infamous and nasty) NULL macro. NULL is nothing but a preprocessor expanding to 0 at compile time and this expansion often leads to ambiguity. [crayon-5daeff7a39a03763477577/] Given the following functions, how […]

General features: nullptr

Definition – unordered set / multiset [crayon-5daeff7a3a09a271010785/] Definition – unordered map / multimap [crayon-5daeff7a3a0a2585972272/] Syntax [crayon-5daeff7a3a0a7161259272/] Internally, the elements are not sorted in any particular order, but organized into buckets. Which bucket an element is placed into depends entirely on the hash of its value. This allows fast access to […]

STL Containers: Unordered containers

CPPEurope 2019 is almost here, and I’m excited to be there next year too! Make sure you follow their website and buy the tickets when they will be available. Feel free to also check my post about last year’s con. See you there!

CPPEurope 2019