Obsolete Members for QVarLengthArray

QVarLengthArray 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.

공개 함수

(deprecated in 6.3) void prepend(T &&value)
(deprecated in 6.3) void prepend(const T &value)

멤버 함수 설명서

[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)와 동일합니다.

대용량 배열의 경우, 벡터 내의 모든 항목을 메모리에서 한 칸씩 오른쪽으로 이동시켜야 하기 때문에 이 연산은 속도가 느릴 수 있습니다(선형 시간). 빠른 prepend() 함수를 제공하는 컨테이너 클래스를 원한다면, 대신 std::list를 사용하십시오.

append() 및 insert()도 참조하십시오 .

© 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.