[Interest] 64 bit capable QVector
Thiago Macieira
thiago.macieira at intel.com
Wed Sep 4 03:02:15 CEST 2013
On terça-feira, 3 de setembro de 2013 17:20:09, Alex Malyushytskyy wrote:
> You meant allocators used by default.
> Such problems can be solved by using custom allocators.
Not all problems. Because of the exception safety guarantees, some types
(notably std::vector) might need to copy everything when extending the buffer.
Otherwise, if an item threw while copying, it would be impossible to restore
the previous known, good state and rethrow.
QVector doesn't need to do that. If it could extend its buffer without moving
it, it would do just that and "damn the exceptions".
We're just waiting for N3495[1]. See also my post:
https://plus.google.com/u/0/108138837678270193032/posts/Bv1JqMkkmfz
[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3495.htm
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130903/2e045e61/attachment.sig>
More information about the Interest
mailing list