[Interest] QList operator[]

Keith Gardner kreios4004 at gmail.com
Fri Jan 9 21:21:05 CET 2015


>
> QList can return a const & with the [] operator [1]. The documantation
> even says it's the same as .at().
>
> [1] http://doc.qt.io/qt-5/qlist.html#operator-5b-5d-2
>
> That is true if the QList is const when calling the function.  If it is
not, the other operator [1] documentation describes the behavior.

[1] http://doc.qt.io/qt-5/qlist.html#operator-5b-5d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150109/d94de6c7/attachment.html>


More information about the Interest mailing list