diff options
Diffstat (limited to 'doc/man/man3/tqptrvector.3qt')
-rw-r--r-- | doc/man/man3/tqptrvector.3qt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/man/man3/tqptrvector.3qt b/doc/man/man3/tqptrvector.3qt index 630cb0bd4..dde23fe24 100644 --- a/doc/man/man3/tqptrvector.3qt +++ b/doc/man/man3/tqptrvector.3qt @@ -119,7 +119,7 @@ TQValueVector is an STL-compatible alternative to this class. .PP TQPtrVector is implemented as a template class. Defines a template instance TQPtrVector<X> to create a vector that contains pointers to X (X*). .PP -A vector is the same as an array. The main difference between TQPtrVector and QMemArray is that TQPtrVector stores pointers to the elements, whereas QMemArray stores the elements themselves (i.e. QMemArray is value-based and TQPtrVector is pointer-based). +A vector is the same as an array. The main difference between TQPtrVector and TQMemArray is that TQPtrVector stores pointers to the elements, whereas TQMemArray stores the elements themselves (i.e. TQMemArray is value-based and TQPtrVector is pointer-based). .PP Items are added to the vector using insert() or fill(). Items are removed with remove(). You can get a pointer to an item at a particular index position using at(). .PP @@ -127,7 +127,7 @@ Unless otherwise stated, all functions that remove items from the vector will al .PP Functions that compare items (find() and sort() for example) will do so using the virtual function compareItems(). The default implementation of this function only compares the pointer values. Reimplement compareItems() in a subclass to get searching and sorting based on the item contents. You can perform a linear search for a pointer in the vector using findRef(), or a binary search (of a sorted vector) using bsearch(). You can count the number of times an item appears in the vector with contains() or containsRef(). .PP -See also QMemArray and Non-GUI Classes. +See also TQMemArray and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "TQPtrVector::TQPtrVector ()" Constructs a null vector. |