From fd3f732489dfd3d522721a818e0e8f48fefce537 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 29 Jan 2018 14:57:41 +0100 Subject: Add documentation entries for new qvector/qvarlength methods Change-Id: I4be1605ed8c9022795d5132203ad947e78481e67 Reviewed-by: Thiago Macieira --- src/corelib/tools/qvarlengtharray.qdoc | 21 +++++++++++++++++++++ src/corelib/tools/qvector.qdoc | 23 +++++++++++++++++++++++ 2 files changed, 44 insertions(+) (limited to 'src/corelib') diff --git a/src/corelib/tools/qvarlengtharray.qdoc b/src/corelib/tools/qvarlengtharray.qdoc index ef2fffa44c..dd86a80e9d 100644 --- a/src/corelib/tools/qvarlengtharray.qdoc +++ b/src/corelib/tools/qvarlengtharray.qdoc @@ -533,6 +533,13 @@ \sa append(), insert() */ +/*! + \fn template void QVarLengthArray::prepend(T &&value) + \since 5.11 + + \overload +*/ + /*! \fn template void QVarLengthArray::replace(int i, const T &value) \since 4.8 @@ -721,6 +728,14 @@ vector. */ + +/*! \fn template void QVarLengthArray::insert(int i, T &&value) + + \overload + \since 5.11 + +*/ + /*! \fn template QVarLengthArray::iterator QVarLengthArray::insert(const_iterator before, const T &value) \overload @@ -730,6 +745,12 @@ \a before. Returns an iterator pointing at the inserted item. */ +/*! \fn template QVarLengthArray::iterator QVarLengthArray::insert(const_iterator before, T &&value) + + \overload + \since 5.11 +*/ + /*! \fn template QVarLengthArray::iterator QVarLengthArray::insert(const_iterator before, int count, const T &value) \since 4.8 diff --git a/src/corelib/tools/qvector.qdoc b/src/corelib/tools/qvector.qdoc index 089aaec3fd..e344a9023d 100644 --- a/src/corelib/tools/qvector.qdoc +++ b/src/corelib/tools/qvector.qdoc @@ -605,6 +605,16 @@ \sa append(), insert() */ +/*! + \fn template void QVector::prepend(T &&value) + \since 5.11 + + \overload + + Inserts \a value at the beginning of the vector using move semantics. +*/ + + /*! \fn template void QVector::insert(int i, const T &value) Inserts \a value at index position \a i in the vector. If \a i is @@ -623,6 +633,14 @@ \sa append(), prepend(), remove() */ +/*! \fn template void QVector::insert(int i, T &&value) + \since 5.11 + + \overload + + Inserts \a value at index position \a i in the vector using move semantics. +*/ + /*! \fn template void QVector::insert(int i, int count, const T &value) \overload @@ -1090,6 +1108,11 @@ to prepend(\a value). */ +/*! \fn template void QVector::push_front(T &&value) + \since 5.11 + \overload +*/ + /*! \fn template void QVector::pop_front() This function is provided for STL compatibility. It is equivalent -- cgit v1.2.3