[Development] Move ctors for q_declare_shared types
Thiago Macieira
thiago.macieira at intel.com
Fri Jun 26 19:56:09 CEST 2015
On Friday 26 June 2015 16:45:18 Marc Mutz wrote:
> The problem you have is that you want immediate resource release. If you
> want that, swap something with a new object:
>
> QVector<Klass>().swap(something);
>
> (or call clear(), but that's Qt-specific).
clear() is changing behaviour to keep reserved capacity if you did reserve().
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list