diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html index 62288cc9e86..8566e670f20 100644 --- a/docs/CodingStandards.html +++ b/docs/CodingStandards.html @@ -37,6 +37,7 @@
  1. Assert Liberally
  2. Prefer Preincrement +
  3. Avoid endl
  4. Exploit C++ to its Fullest
  • Writing Iterators @@ -292,6 +293,19 @@ Hard fast rule: Preincrement (++X) may be no slower than postincrement (X++) and The semantics of postincrement include making a copy of the value being incremented, returning it, and then preincrementing the "work value". For primitive types, this isn't a big deal... but for iterators, it can be a huge issue (for example, some iterators contains stack and set objects in them... copying an iterator could invoke the copy ctor's of these as well). In general, get in the habit of always using preincrement, and you won't have a problem.

    + +


    Avoid endl


    Exploit C++ to its Fullest