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

Thiago Macieira thiago.macieira at intel.com
Wed Oct 31 17:47:14 CET 2018


On Wednesday, 31 October 2018 08:52:10 PDT Philippe wrote:
> Hence best is:
> 
> for (auto &element : std::as_const(container))

Which is why we added qAsConst.

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






More information about the Development mailing list