C++ Tips: Temporaries

Table of Contents

const, references, and temporaries
When implicit type conversions gives unpleasant results
References to non-const temporaries
Thoughts on references to temporaries and lvalues
Destruction of temporaries
Temporaries and references
Lifetimes of temporaries
New ruling on lifetime of temporaries
New ruling on lifetime of temporaries
Compiler generated temporaries
how many temporaries does it take to add three numbers
object lifetimes and optimization
guru question #2 - temporaries
Guru#2 - author's answer
return value optimization and temp lifetimes
guru prob #3 - stl and temporaries
binding non-const references to temporaries
value semantics and temporary lifetimes
taking the address of a temporary

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.