diff options
author | Martin Smith <martin.smith@qt.io> | 2017-09-13 12:07:28 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2017-12-01 10:48:22 +0000 |
commit | b23c52ea8110f05def21713934fcc6131f44ec6a (patch) | |
tree | ab6de0140a78f2bbbe559a0a1708cda45a0f784b /src/corelib/tools/qvector.qdoc | |
parent | 32326a4b3b8234f56bb1c5f47b5bdd6c8fec7917 (diff) |
Add template text to \fn commands in container classes
The \fn commands were not recognized by clang-qdoc because
the template stuff was missing from the \fn commands. This
update adds the correct template text and parameters. It
eliminates nearly 2000 qdoc warnings.
Change-Id: Ibe047424396a8f99f8bd64efea1b0d8cc7c7527d
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/corelib/tools/qvector.qdoc')
-rw-r--r-- | src/corelib/tools/qvector.qdoc | 220 |
1 files changed, 110 insertions, 110 deletions
diff --git a/src/corelib/tools/qvector.qdoc b/src/corelib/tools/qvector.qdoc index 61fb3d494d..1068de76d5 100644 --- a/src/corelib/tools/qvector.qdoc +++ b/src/corelib/tools/qvector.qdoc @@ -189,7 +189,7 @@ */ /*! - \fn QVector<T> QVector::mid(int pos, int length = -1) const + \fn template <typename T> QVector<T> QVector<T>::mid(int pos, int length = -1) const Returns a sub-vector which contains elements from this vector, starting at position \a pos. If \a length is -1 (the default), all @@ -199,7 +199,7 @@ */ -/*! \fn QVector::QVector() +/*! \fn template <typename T> QVector<T>::QVector() Constructs an empty vector. @@ -207,7 +207,7 @@ */ /*! - \fn QVector::QVector(QVector<T> &&other) + \fn template <typename T> QVector<T>::QVector(QVector<T> &&other) Move-constructs a QVector instance, making it point at the same object that \a other was pointing to. @@ -215,7 +215,7 @@ \since 5.2 */ -/*! \fn QVector::QVector(int size) +/*! \fn template <typename T> QVector<T>::QVector(int size) Constructs a vector with an initial size of \a size elements. @@ -225,7 +225,7 @@ \sa resize() */ -/*! \fn QVector::QVector(int size, const T &value) +/*! \fn template <typename T> QVector<T>::QVector(int size, const T &value) Constructs a vector with an initial size of \a size elements. Each element is initialized with \a value. @@ -233,7 +233,7 @@ \sa resize(), fill() */ -/*! \fn QVector::QVector(const QVector<T> &other) +/*! \fn template <typename T> QVector<T>::QVector(const QVector<T> &other) Constructs a copy of \a other. @@ -246,7 +246,7 @@ \sa operator=() */ -/*! \fn QVector::QVector(std::initializer_list<T> args) +/*! \fn template <typename T> QVector<T>::QVector(std::initializer_list<T> args) \since 4.8 Constructs a vector from the std::initializer_list given by \a args. @@ -256,33 +256,33 @@ */ -/*! \fn QVector::~QVector() +/*! \fn template <typename T> QVector<T>::~QVector() Destroys the vector. */ -/*! \fn QVector<T> &QVector::operator=(const QVector<T> &other) +/*! \fn template <typename T> QVector<T> &QVector<T>::operator=(const QVector<T> &other) Assigns \a other to this vector and returns a reference to this vector. */ /*! - \fn QVector<T> &QVector::operator=(QVector<T> &&other) + \fn template <typename T> QVector<T> &QVector<T>::operator=(QVector<T> &&other) Move-assigns \a other to this QVector instance. \since 5.2 */ -/*! \fn void QVector::swap(QVector<T> &other) +/*! \fn template <typename T> void QVector<T>::swap(QVector<T> &other) \since 4.8 Swaps vector \a other with this vector. This operation is very fast and never fails. */ -/*! \fn bool QVector::operator==(const QVector<T> &other) const +/*! \fn template <typename T> bool QVector<T>::operator==(const QVector<T> &other) const Returns \c true if \a other is equal to this vector; otherwise returns \c false. @@ -296,7 +296,7 @@ \sa operator!=() */ -/*! \fn bool QVector::operator!=(const QVector<T> &other) const +/*! \fn template <typename T> bool QVector<T>::operator!=(const QVector<T> &other) const Returns \c true if \a other is not equal to this vector; otherwise returns \c false. @@ -310,7 +310,7 @@ \sa operator==() */ -/*! \fn bool operator<(const QVector<T> &lhs, const QVector<T> &rhs) +/*! \fn template <typename T> bool operator<(const QVector<T> &lhs, const QVector<T> &rhs) \since 5.6 \relates QVector @@ -322,7 +322,7 @@ of \c operator<(). */ -/*! \fn bool operator<=(const QVector<T> &lhs, const QVector<T> &rhs) +/*! \fn template <typename T> bool operator<=(const QVector<T> &lhs, const QVector<T> &rhs) \since 5.6 \relates QVector @@ -334,7 +334,7 @@ of \c operator<(). */ -/*! \fn bool operator>(const QVector<T> &lhs, const QVector<T> &rhs) +/*! \fn template <typename T> bool operator>(const QVector<T> &lhs, const QVector<T> &rhs) \since 5.6 \relates QVector @@ -346,7 +346,7 @@ of \c operator<(). */ -/*! \fn bool operator>=(const QVector<T> &lhs, const QVector<T> &rhs) +/*! \fn template <typename T> bool operator>=(const QVector<T> &lhs, const QVector<T> &rhs) \since 5.6 \relates QVector @@ -359,7 +359,7 @@ */ /*! - \fn uint qHash(const QVector<T> &key, uint seed = 0) + \fn template <typename T> uint qHash(const QVector<T> &key, uint seed = 0) \since 5.6 \relates QVector @@ -369,21 +369,21 @@ This function requires qHash() to be overloaded for the value type \c T. */ -/*! \fn int QVector::size() const +/*! \fn template <typename T> int QVector<T>::size() const Returns the number of items in the vector. \sa isEmpty(), resize() */ -/*! \fn bool QVector::isEmpty() const +/*! \fn template <typename T> bool QVector<T>::isEmpty() const Returns \c true if the vector has size 0; otherwise returns \c false. \sa size(), resize() */ -/*! \fn void QVector::resize(int size) +/*! \fn template <typename T> void QVector<T>::resize(int size) Sets the size of the vector to \a size. If \a size is greater than the current size, elements are added to the end; the new elements are @@ -396,7 +396,7 @@ \sa size() */ -/*! \fn int QVector::capacity() const +/*! \fn template <typename T> int QVector<T>::capacity() const Returns the maximum number of items that can be stored in the vector without forcing a reallocation. @@ -409,7 +409,7 @@ \sa reserve(), squeeze() */ -/*! \fn void QVector::reserve(int size) +/*! \fn template <typename T> void QVector<T>::reserve(int size) Attempts to allocate memory for at least \a size elements. If you know in advance how large the vector will be, you should call this @@ -434,7 +434,7 @@ \sa squeeze(), capacity() */ -/*! \fn void QVector::squeeze() +/*! \fn template <typename T> void QVector<T>::squeeze() Releases any memory not required to store the items. @@ -445,27 +445,27 @@ \sa reserve(), capacity() */ -/*! \fn void QVector::detach() +/*! \fn template <typename T> void QVector<T>::detach() \internal */ -/*! \fn bool QVector::isDetached() const +/*! \fn template <typename T> bool QVector<T>::isDetached() const \internal */ -/*! \fn void QVector::setSharable(bool sharable) +/*! \fn template <typename T> void QVector<T>::setSharable(bool sharable) \internal */ -/*! \fn bool QVector::isSharedWith(const QVector<T> &other) const +/*! \fn template <typename T> bool QVector<T>::isSharedWith(const QVector<T> &other) const \internal */ -/*! \fn T *QVector::data() +/*! \fn template <typename T> T *QVector<T>::data() Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector. @@ -482,12 +482,12 @@ \sa constData(), operator[]() */ -/*! \fn const T *QVector::data() const +/*! \fn template <typename T> const T *QVector<T>::data() const \overload */ -/*! \fn const T *QVector::constData() const +/*! \fn template <typename T> const T *QVector<T>::constData() const Returns a const pointer to the data stored in the vector. The pointer can be used to access the items in the vector. @@ -500,7 +500,7 @@ \sa data(), operator[]() */ -/*! \fn void QVector::clear() +/*! \fn template <typename T> void QVector<T>::clear() Removes all the elements from the vector. @@ -517,7 +517,7 @@ \sa squeeze() */ -/*! \fn const T &QVector::at(int i) const +/*! \fn template <typename T> const T &QVector<T>::at(int i) const Returns the item at index position \a i in the vector. @@ -527,7 +527,7 @@ \sa value(), operator[]() */ -/*! \fn T &QVector::operator[](int i) +/*! \fn template <typename T> T &QVector<T>::operator[](int i) Returns the item at index position \a i as a modifiable reference. @@ -540,7 +540,7 @@ \sa at(), value() */ -/*! \fn const T &QVector::operator[](int i) const +/*! \fn template <typename T> const T &QVector<T>::operator[](int i) const \overload @@ -548,7 +548,7 @@ */ /*! - \fn void QVector::append(const T &value) + \fn template <typename T> void QVector<T>::append(const T &value) Inserts \a value at the end of the vector. @@ -566,7 +566,7 @@ */ /*! - \fn void QVector::append(T &&value) + \fn template <typename T> void QVector<T>::append(T &&value) \since 5.6 \overload @@ -575,7 +575,7 @@ \snippet code/src_corelib_tools_qvector.cpp move-append */ -/*! \fn void QVector::append(const QVector<T> &value) +/*! \fn template <typename T> void QVector<T>::append(const QVector<T> &value) \overload @@ -587,7 +587,7 @@ */ -/*! \fn void QVector::prepend(const T &value) +/*! \fn template <typename T> void QVector<T>::prepend(const T &value) Inserts \a value at the beginning of the vector. @@ -605,7 +605,7 @@ \sa append(), insert() */ -/*! \fn void QVector::insert(int i, const T &value) +/*! \fn template <typename T> void QVector<T>::insert(int i, const T &value) Inserts \a value at index position \a i in the vector. If \a i is 0, the value is prepended to the vector. If \a i is size(), the @@ -623,7 +623,7 @@ \sa append(), prepend(), remove() */ -/*! \fn void QVector::insert(int i, int count, const T &value) +/*! \fn template <typename T> void QVector<T>::insert(int i, int count, const T &value) \overload @@ -634,7 +634,7 @@ \snippet code/src_corelib_tools_qvector.cpp 10 */ -/*! \fn QVector::iterator QVector::insert(iterator before, const T &value) +/*! \fn template <typename T> QVector<T>::iterator QVector<T>::insert(iterator before, const T &value) \overload @@ -642,14 +642,14 @@ \a before. Returns an iterator pointing at the inserted item. */ -/*! \fn QVector::iterator QVector::insert(iterator before, int count, const T &value) +/*! \fn template <typename T> QVector<T>::iterator QVector<T>::insert(iterator before, int count, const T &value) Inserts \a count copies of \a value in front of the item pointed to by the iterator \a before. Returns an iterator pointing at the first of the inserted items. */ -/*! \fn void QVector::replace(int i, const T &value) +/*! \fn template <typename T> void QVector<T>::replace(int i, const T &value) Replaces the item at index position \a i with \a value. @@ -659,7 +659,7 @@ \sa operator[](), remove() */ -/*! \fn void QVector::remove(int i) +/*! \fn template <typename T> void QVector<T>::remove(int i) \overload @@ -668,7 +668,7 @@ \sa insert(), replace(), fill() */ -/*! \fn void QVector::remove(int i, int count) +/*! \fn template <typename T> void QVector<T>::remove(int i, int count) \overload @@ -678,7 +678,7 @@ \sa insert(), replace(), fill() */ -/*! \fn void QVector::removeAt(int i) +/*! \fn template <typename T> void QVector<T>::removeAt(int i) \since 5.2 Removes the element at index position \a i. @@ -692,7 +692,7 @@ \sa remove(), QList::removeAt() */ -/*! \fn int QVector::removeAll(const T &t) +/*! \fn template <typename T> int QVector<T>::removeAll(const T &t) \since 5.4 Removes all elements that compare equal to \a t from the @@ -703,7 +703,7 @@ \sa removeOne(), QList::removeAll() */ -/*! \fn bool QVector::removeOne(const T &t) +/*! \fn template <typename T> bool QVector<T>::removeOne(const T &t) \since 5.4 Removes the first element that compares equal to \a t from the @@ -714,7 +714,7 @@ \sa removeAll(), QList::removeOne() */ -/*! \fn int QVector::length() const +/*! \fn template <typename T> int QVector<T>::length() const \since 5.2 Same as size() and count(). @@ -724,7 +724,7 @@ \sa size(), count(), QList::length() */ -/*! \fn T QVector::takeAt(int i) +/*! \fn template <typename T> T QVector<T>::takeAt(int i) \since 5.2 Removes the element at index position \a i and returns it. @@ -741,7 +741,7 @@ \sa takeFirst(), takeLast(), QList::takeAt() */ -/*! \fn void QVector::move(int from, int to) +/*! \fn template <typename T> void QVector<T>::move(int from, int to) \since 5.6 Moves the item at index position \a from to index position \a to. @@ -751,7 +751,7 @@ \sa QList::move() */ -/*! \fn void QVector::removeFirst() +/*! \fn template <typename T> void QVector<T>::removeFirst() \since 5.1 Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If @@ -761,7 +761,7 @@ \sa remove(), takeFirst(), isEmpty() */ -/*! \fn void QVector::removeLast() +/*! \fn template <typename T> void QVector<T>::removeLast() \since 5.1 Removes the last item in the vector. Calling this function is equivalent to calling remove(size() - 1). The vector must not be @@ -771,7 +771,7 @@ \sa remove(), takeLast(), removeFirst(), isEmpty() */ -/*! \fn T QVector::takeFirst() +/*! \fn template <typename T> T QVector<T>::takeFirst() \since 5.1 Removes the first item in the vector and returns it. This function @@ -781,7 +781,7 @@ \sa takeLast(), removeFirst() */ -/*! \fn T QVector::takeLast() +/*! \fn template <typename T> T QVector<T>::takeLast() \since 5.1 Removes the last item in the list and returns it. This function @@ -795,7 +795,7 @@ */ -/*! \fn QVector &QVector::fill(const T &value, int size = -1) +/*! \fn template <typename T> QVector &QVector<T>::fill(const T &value, int size = -1) Assigns \a value to all items in the vector. If \a size is different from -1 (the default), the vector is resized to size \a @@ -807,7 +807,7 @@ \sa resize() */ -/*! \fn int QVector::indexOf(const T &value, int from = 0) const +/*! \fn template <typename T> int QVector<T>::indexOf(const T &value, int from = 0) const Returns the index position of the first occurrence of \a value in the vector, searching forward from index position \a from. @@ -822,7 +822,7 @@ \sa lastIndexOf(), contains() */ -/*! \fn int QVector::lastIndexOf(const T &value, int from = -1) const +/*! \fn template <typename T> int QVector<T>::lastIndexOf(const T &value, int from = -1) const Returns the index position of the last occurrence of the value \a value in the vector, searching backward from index position \a @@ -838,7 +838,7 @@ \sa indexOf() */ -/*! \fn bool QVector::contains(const T &value) const +/*! \fn template <typename T> bool QVector<T>::contains(const T &value) const Returns \c true if the vector contains an occurrence of \a value; otherwise returns \c false. @@ -849,7 +849,7 @@ \sa indexOf(), count() */ -/*! \fn bool QVector::startsWith(const T &value) const +/*! \fn template <typename T> bool QVector<T>::startsWith(const T &value) const \since 4.5 Returns \c true if this vector is not empty and its first @@ -858,7 +858,7 @@ \sa isEmpty(), first() */ -/*! \fn bool QVector::endsWith(const T &value) const +/*! \fn template <typename T> bool QVector<T>::endsWith(const T &value) const \since 4.5 Returns \c true if this vector is not empty and its last @@ -868,7 +868,7 @@ */ -/*! \fn int QVector::count(const T &value) const +/*! \fn template <typename T> int QVector<T>::count(const T &value) const Returns the number of occurrences of \a value in the vector. @@ -878,14 +878,14 @@ \sa contains(), indexOf() */ -/*! \fn int QVector::count() const +/*! \fn template <typename T> int QVector<T>::count() const \overload Same as size(). */ -/*! \fn QVector::iterator QVector::begin() +/*! \fn template <typename T> QVector<T>::iterator QVector<T>::begin() Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first item in the vector. @@ -893,12 +893,12 @@ \sa constBegin(), end() */ -/*! \fn QVector::const_iterator QVector::begin() const +/*! \fn template <typename T> QVector<T>::const_iterator QVector<T>::begin() const \overload */ -/*! \fn QVector::const_iterator QVector::cbegin() const +/*! \fn template <typename T> QVector<T>::const_iterator QVector<T>::cbegin() const \since 5.0 Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first item @@ -907,7 +907,7 @@ \sa begin(), cend() */ -/*! \fn QVector::const_iterator QVector::constBegin() const +/*! \fn template <typename T> QVector<T>::const_iterator QVector<T>::constBegin() const Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first item in the vector. @@ -915,7 +915,7 @@ \sa begin(), constEnd() */ -/*! \fn QVector::iterator QVector::end() +/*! \fn template <typename T> QVector<T>::iterator QVector<T>::end() Returns an \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last item in the vector. @@ -923,12 +923,12 @@ \sa begin(), constEnd() */ -/*! \fn QVector::const_iterator QVector::end() const +/*! \fn template <typename T> QVector<T>::const_iterator QVector<T>::end() const \overload */ -/*! \fn QVector::const_iterator QVector::cend() const +/*! \fn template <typename T> QVector<T>::const_iterator QVector<T>::cend() const \since 5.0 Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary @@ -937,7 +937,7 @@ \sa cbegin(), end() */ -/*! \fn QVector::const_iterator QVector::constEnd() const +/*! \fn template <typename T> QVector<T>::const_iterator QVector<T>::constEnd() const Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last item in the vector. @@ -945,7 +945,7 @@ \sa constBegin(), end() */ -/*! \fn QVector::reverse_iterator QVector::rbegin() +/*! \fn template <typename T> QVector<T>::reverse_iterator QVector<T>::rbegin() \since 5.6 Returns a \l{STL-style iterators}{STL-style} reverse iterator pointing to the first @@ -954,12 +954,12 @@ \sa begin(), crbegin(), rend() */ -/*! \fn QVector::const_reverse_iterator QVector::rbegin() const +/*! \fn template <typename T> QVector<T>::const_reverse_iterator QVector<T>::rbegin() const \since 5.6 \overload */ -/*! \fn QVector::const_reverse_iterator QVector::crbegin() const +/*! \fn template <typename T> QVector<T>::const_reverse_iterator QVector<T>::crbegin() const \since 5.6 Returns a const \l{STL-style iterators}{STL-style} reverse iterator pointing to the first @@ -968,7 +968,7 @@ \sa begin(), rbegin(), rend() */ -/*! \fn QVector::reverse_iterator QVector::rend() +/*! \fn template <typename T> QVector<T>::reverse_iterator QVector<T>::rend() \since 5.6 Returns a \l{STL-style iterators}{STL-style} reverse iterator pointing to one past @@ -977,12 +977,12 @@ \sa end(), crend(), rbegin() */ -/*! \fn QVector::const_reverse_iterator QVector::rend() const +/*! \fn template <typename T> QVector<T>::const_reverse_iterator QVector<T>::rend() const \since 5.6 \overload */ -/*! \fn QVector::const_reverse_iterator QVector::crend() const +/*! \fn template <typename T> QVector<T>::const_reverse_iterator QVector<T>::crend() const \since 5.6 Returns a const \l{STL-style iterators}{STL-style} reverse iterator pointing to one @@ -991,7 +991,7 @@ \sa end(), rend(), rbegin() */ -/*! \fn QVector::iterator QVector::erase(iterator pos) +/*! \fn template <typename T> QVector<T>::iterator QVector<T>::erase(iterator pos) Removes the item pointed to by the iterator \a pos from the vector, and returns an iterator to the next item in the vector @@ -1000,7 +1000,7 @@ \sa insert(), remove() */ -/*! \fn QVector::iterator QVector::erase(iterator begin, iterator end) +/*! \fn template <typename T> QVector<T>::iterator QVector<T>::erase(iterator begin, iterator end) \overload @@ -1009,7 +1009,7 @@ before the call. */ -/*! \fn T& QVector::first() +/*! \fn template <typename T> T& QVector<T>::first() Returns a reference to the first item in the vector. This function assumes that the vector isn't empty. @@ -1017,12 +1017,12 @@ \sa last(), isEmpty(), constFirst() */ -/*! \fn const T& QVector::first() const +/*! \fn template <typename T> const T& QVector<T>::first() const \overload */ -/*! \fn const T& QVector::constFirst() const +/*! \fn template <typename T> const T& QVector<T>::constFirst() const \since 5.6 Returns a const reference to the first item in the vector. This @@ -1031,7 +1031,7 @@ \sa constLast(), isEmpty(), first() */ -/*! \fn T& QVector::last() +/*! \fn template <typename T> T& QVector<T>::last() Returns a reference to the last item in the vector. This function assumes that the vector isn't empty. @@ -1039,12 +1039,12 @@ \sa first(), isEmpty(), constLast() */ -/*! \fn const T& QVector::last() const +/*! \fn template <typename T> const T& QVector<T>::last() const \overload */ -/*! \fn const T& QVector::constLast() const +/*! \fn template <typename T> const T& QVector<T>::constLast() const \since 5.6 Returns a const reference to the last item in the vector. This function @@ -1053,7 +1053,7 @@ \sa constFirst(), isEmpty(), last() */ -/*! \fn T QVector::value(int i) const +/*! \fn template <typename T> T QVector<T>::value(int i) const Returns the value at index position \a i in the vector. @@ -1065,7 +1065,7 @@ \sa at(), operator[]() */ -/*! \fn T QVector::value(int i, const T &defaultValue) const +/*! \fn template <typename T> T QVector<T>::value(int i, const T &defaultValue) const \overload @@ -1073,72 +1073,72 @@ \a defaultValue. */ -/*! \fn void QVector::push_back(const T &value) +/*! \fn template <typename T> void QVector<T>::push_back(const T &value) This function is provided for STL compatibility. It is equivalent to append(\a value). */ -/*! \fn void QVector::push_back(T &&value) +/*! \fn template <typename T> void QVector<T>::push_back(T &&value) \since 5.6 \overload */ -/*! \fn void QVector::push_front(const T &value) +/*! \fn template <typename T> void QVector<T>::push_front(const T &value) This function is provided for STL compatibility. It is equivalent to prepend(\a value). */ -/*! \fn void QVector::pop_front() +/*! \fn template <typename T> void QVector<T>::pop_front() This function is provided for STL compatibility. It is equivalent to removeFirst(). */ -/*! \fn void QVector::pop_back() +/*! \fn template <typename T> void QVector<T>::pop_back() This function is provided for STL compatibility. It is equivalent to removeLast(). */ -/*! \fn T& QVector::front() +/*! \fn template <typename T> T& QVector<T>::front() This function is provided for STL compatibility. It is equivalent to first(). */ -/*! \fn QVector::const_reference QVector::front() const +/*! \fn template <typename T> QVector<T>::const_reference QVector<T>::front() const \overload */ -/*! \fn QVector::reference QVector::back() +/*! \fn template <typename T> QVector<T>::reference QVector<T>::back() This function is provided for STL compatibility. It is equivalent to last(). */ -/*! \fn QVector::const_reference QVector::back() const +/*! \fn template <typename T> QVector<T>::const_reference QVector<T>::back() const \overload */ -/*! \fn void QVector::shrink_to_fit() +/*! \fn template <typename T> void QVector<T>::shrink_to_fit() \since 5.10 This function is provided for STL compatibility. It is equivalent to squeeze(). */ -/*! \fn bool QVector::empty() const +/*! \fn template <typename T> bool QVector<T>::empty() const This function is provided for STL compatibility. It is equivalent to isEmpty(), returning \c true if the vector is empty; otherwise returns \c false. */ -/*! \fn QVector<T> &QVector::operator+=(const QVector<T> &other) +/*! \fn template <typename T> QVector<T> &QVector<T>::operator+=(const QVector<T> &other) Appends the items of the \a other vector to this vector and returns a reference to this vector. @@ -1146,7 +1146,7 @@ \sa operator+(), append() */ -/*! \fn void QVector::operator+=(const T &value) +/*! \fn template <typename T> void QVector<T>::operator+=(const T &value) \overload @@ -1155,7 +1155,7 @@ \sa append(), operator<<() */ -/*! \fn QVector<T> QVector::operator+(const QVector<T> &other) const +/*! \fn template <typename T> QVector<T> QVector<T>::operator+(const QVector<T> &other) const Returns a vector that contains all the items in this vector followed by all the items in the \a other vector. @@ -1163,7 +1163,7 @@ \sa operator+=() */ -/*! \fn QVector<T> &QVector::operator<<(const T &value) +/*! \fn template <typename T> QVector<T> &QVector<T>::operator<<(const T &value) Appends \a value to the vector and returns a reference to this vector. @@ -1171,7 +1171,7 @@ \sa append(), operator+=() */ -/*! \fn QVector<T> &QVector::operator<<(const QVector<T> &other) +/*! \fn template <typename T> QVector<T> &QVector<T>::operator<<(const QVector<T> &other) Appends \a other to the vector and returns a reference to the vector. @@ -1288,7 +1288,7 @@ Typedef for T. Provided for STL compatibility. */ -/*! \fn QList<T> QVector<T>::toList() const +/*! \fn template <typename T> QList<T> QVector<T>::toList() const Returns a QList object with the data contained in this QVector. @@ -1299,7 +1299,7 @@ \sa fromList(), QList::fromVector() */ -/*! \fn QVector<T> QVector<T>::fromList(const QList<T> &list) +/*! \fn template <typename T> QVector<T> QVector<T>::fromList(const QList<T> &list) Returns a QVector object with the data contained in \a list. @@ -1310,7 +1310,7 @@ \sa toList(), QList::toVector() */ -/*! \fn QVector<T> QVector<T>::fromStdVector(const std::vector<T> &vector) +/*! \fn template <typename T> QVector<T> QVector<T>::fromStdVector(const std::vector<T> &vector) Returns a QVector object with the data contained in \a vector. The order of the elements in the QVector is the same as in \a vector. @@ -1322,7 +1322,7 @@ \sa toStdVector(), QList::fromStdList() */ -/*! \fn std::vector<T> QVector<T>::toStdVector() const +/*! \fn template <typename T> std::vector<T> QVector<T>::toStdVector() const Returns a std::vector object with the data contained in this QVector. Example: @@ -1332,7 +1332,7 @@ \sa fromStdVector(), QList::toStdList() */ -/*! \fn QDataStream &operator<<(QDataStream &out, const QVector<T> &vector) +/*! \fn template <typename T> QDataStream &operator<<(QDataStream &out, const QVector<T> &vector) \relates QVector Writes the vector \a vector to stream \a out. @@ -1342,7 +1342,7 @@ \sa{Serializing Qt Data Types}{Format of the QDataStream operators} */ -/*! \fn QDataStream &operator>>(QDataStream &in, QVector<T> &vector) +/*! \fn template <typename T> QDataStream &operator>>(QDataStream &in, QVector<T> &vector) \relates QVector Reads a vector from stream \a in into \a vector. |