[Development] QVector rvalue overloads for convenience functions?

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Sat Mar 3 21:32:12 CET 2018


>
>
> inline QVector<T> &operator+=(T &&t)
> { append(std::move(t)); return *this; }
>

Ah, yes! This makes sense.

inline QVector<T> &operator<< (T &&t)
> { append(std::move(t)); return *this; }
>
> Note they might be missing from qvarlengtharray too.
>

Thanks for the clarification.

-mandeep


>
> 'Allan
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20180303/32d90c6a/attachment.html>


More information about the Development mailing list