Re: What the?
- From: "Giovanni Dicanio" <giovanni.dicanio@xxxxxxxxxxx>
- Date: Wed, 13 Feb 2008 10:06:46 +0100
"Doug Harrison [MVP]" <dsh@xxxxxxxx> ha scritto nel messaggio
news:dbs4r3t1c1klbsp5rsanhrfr6ertpadbbl@xxxxxxxxxx
The modern C++ issue concerns postincrement returning a copy of the
original value. Since iterators can be arbitrary class types, this is
potentially more expensive than using preincrement, which returns the
incremented object by reference. Therefore, the standard advice is to use
preincrement when there's a choice.
Thanks,
Giovanni
.
- References:
- What the?
- From: Ron H.
- Re: What the?
- From: Joseph M . Newcomer
- Re: What the?
- From: Giovanni Dicanio
- Re: What the?
- From: Joseph M . Newcomer
- Re: What the?
- From: Doug Harrison [MVP]
- What the?
- Prev by Date: Re: What the?
- Next by Date: Re: What the?
- Previous by thread: Re: What the?
- Next by thread: Re: What the?
- Index(es):