src/corelib/tools/qvarlengtharray.qdoc
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 33 3e2da88830cd
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   195     Returns a reference to the item at index position \a i.
   195     Returns a reference to the item at index position \a i.
   196 
   196 
   197     \a i must be a valid index position in the array (i.e., 0 <= \a i
   197     \a i must be a valid index position in the array (i.e., 0 <= \a i
   198     < size()).
   198     < size()).
   199 
   199 
   200     \sa data()
   200     \sa data(), at()
   201 */
   201 */
   202 
   202 
   203 /*! \fn const T &QVarLengthArray::operator[](int i) const
   203 /*! \fn const T &QVarLengthArray::operator[](int i) const
   204 
   204 
   205     \overload
   205     \overload
   270 
   270 
   271 /*! \fn QVarLengthArray::QVarLengthArray(const QVarLengthArray<T, Prealloc> &other)
   271 /*! \fn QVarLengthArray::QVarLengthArray(const QVarLengthArray<T, Prealloc> &other)
   272     Constructs a copy of \a other.
   272     Constructs a copy of \a other.
   273  */
   273  */
   274 
   274 
       
   275 /*! \fn const T &QVarLengthArray::at(int i) const
       
   276 
       
   277     Returns a reference to the item at index position \a i.
       
   278 
       
   279     \a i must be a valid index position in the array (i.e., 0 <= \a i
       
   280     < size()).
       
   281 
       
   282     \sa value(), operator[]()
       
   283 */
       
   284 
       
   285 /*! \fn T QVarLengthArray::value(int i) const
       
   286 
       
   287     Returns the value at index position \a i.
       
   288 
       
   289     If the index \a i is out of bounds, the function returns
       
   290     a \l{default-constructed value}. If you are certain that
       
   291     \a i is within bounds, you can use at() instead, which is slightly
       
   292     faster.
       
   293 
       
   294     \sa at(), operator[]()
       
   295 */
       
   296 
       
   297 /*! \fn T QVarLengthArray::value(int i, const T &defaultValue) const
       
   298 
       
   299     \overload
       
   300 
       
   301     If the index \a i is out of bounds, the function returns
       
   302     \a defaultValue.
       
   303 */
       
   304