I’m officially coining the term RAIIght
As in - “Don’t use raw pointers, use smart pointers - it’s the RAIIght thing to do.”
First answer: http://stackoverflow.com/a/13016719/673730
I see you want to know whether `x += y` is faster than `x = x + y`. Question: have you tried profiling? Before asking any sort of optimization question, profile. If you find something counter-intuitive, then ask a question. Why is `x+= y` faster? It’s definitely not (excluding weird operator overloads), but if it were… now that’s a question of interest.