[Development] qMoveToConst helper for rvalue references to movable Qt containers?

Thiago Macieira thiago.macieira at intel.com
Sat Oct 27 22:35:05 CEST 2018


On Saturday, 27 October 2018 13:07:40 PDT Lars Knoll wrote:
> No need. He’s right. A move constructor only works with a non const value,
> as it needs to modify the object. One thing to check however for our
> containers is how much more expensive the copy is (compared to the move).

Two atomic operations.

https://stackoverflow.com/questions/2538070/atomic-operation-cost
https://stackoverflow.com/questions/34660376/atomic-fetch-add-vs-add-performance
etc.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Development mailing list