Obsolete Members for QVarLengthArray
QVarLengthArray クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。
パブリック関数
メンバー関数のドキュメント
[deprecated in 6.3] void QVarLengthArray::prepend(T &&value)
[deprecated in 6.3] void QVarLengthArray::prepend(const T &value)
この関数はバージョン 6.3 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。
処理速度が遅いです。やむを得ず使用する場合は、代わりに `insert(cbegin(), ~~~) ` を使用してください。
配列の先頭に `value ` を挿入します。
これは vector.insert(0,value) と同じです。
配列が大きい場合、この操作は遅くなる可能性があります(線形時間)。これは、ベクタ内のすべての要素をメモリ上で1つずつ右に移動させる必要があるためです。高速なprepend()関数を提供するコンテナクラスが必要な場合は、代わりにstd::listを使用してください。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.