Prefix versus Postfix in C++
Abstract
Many coders today do not take the time to consider the implications of the code they write. Not all code is created equal, and something as seemingly harmless as incrementing or decrementing via prefix instead of a postfix notation can have a considerable effect on performance. Modern day compilers can and do optimize certain common instances of code involving this notation, but it should not be relied upon in a well-developed and maintained code base.
Document Details
- Document Type
- Technical Report
- Publication Date
- Oct 01, 2015
- Accession Number
- ADA622095
Entities
People
- Tom Nealis
Organizations
- United States Army Armament Research, Development and Engineering Center