GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Scientific Computing » C++ » What would you prefer to use in your code?
Re: What would you prefer to use in your code? [message #1681 is a reply to message #1561] Thu, 19 May 2005 18:01 Go to previous messageGo to previous message
Dennis Klein is currently offline  Dennis Klein
Messages: 1
Registered: May 2005
Location: GSI, Darmstadt
occasional visitor
From: lxg0513.gsi.de
Hi,
I prefer the prefix version.

To keep my code readable, I use the ++-operator in one line for itself. In this case, there's no difference between the prefix and the postfix version. If you try to implement it by yourself, you will see that the prefix version is much easier, say faster und smaller.
 
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: Al Stevens Interviews Alex Stepanov - STL forever!
Next Topic: Effective C++ 3ed (c) Scott Meyers
Goto Forum:
  


Current Time: Sun Aug 09 11:00:47 CEST 2020

Total time taken to generate the page: 0.02523 seconds