OpenMW/openmw — pull request #178 by cc9cii (2014-07-05 07:06:08+00:00)
Title: Minor change to improve generated STL code (only tested with MSVC 2012)....

... More details in old forum post https://forum.openmw.org/viewtopic.php?f=6&t=2153#p24065 (generated assembler code included for comparison.

Below changes were tested once more with a Release build (/O2 /Ob2 optimization) using MSVC 2013 (using the suggestions here: http://msdn.microsoft.com/en-us/library/fsk896zz.aspx) to confirm the reduction in an STL call in the disassembled code.

There may be no improvements on linux systems - gcc may be smarter than MSVC with these constructs - don't know since untested.