Post increment and decrement

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 23 05:10:30 PDT 2015


Well, things like std::string are not cooperative in this regard. 
Though, it's copied only to be instantly destructed, 
theoretically it should be elided if the involved constructors 
are annotated with sufficient purity or complementary operators. 
Also the iterator pretends to be copyable, but it can't resume 
from the point where it was copied, can it?


More information about the Digitalmars-d mailing list