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 _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
