[MECpp]Item-22 Consider Using op= Instead of Stand Alone op
· β 3 min read
Assignment versions of operators (such as operator+=) tend to be more efficient than stand-alone versions of those operators (e.g., operator+).
Assignment versions of operators (such as operator+=) tend to be more efficient than stand-alone versions of those operators (e.g., operator+).
The old Computer Science story: trade space for time1.