diff options
Diffstat (limited to 'doc/man/man3/tqmap.3qt')
-rw-r--r-- | doc/man/man3/tqmap.3qt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/man/man3/tqmap.3qt b/doc/man/man3/tqmap.3qt index e3c5ee9a7..00909cbc6 100644 --- a/doc/man/man3/tqmap.3qt +++ b/doc/man/man3/tqmap.3qt @@ -143,7 +143,7 @@ TQMap \- Value-based template class that provides a dictionary .BI "bool \fBisEmpty\fR () const" .br .ti -1c -.BI "iterator \fBinsert\fR ( const Key & key, const T & value, bool overwrite = TRUE )" +.BI "iterator \fBinsert\fR ( const Key & key, const T & value, bool overwrite = true )" .br .ti -1c .BI "void \fBremove\fR ( iterator it )" @@ -406,7 +406,7 @@ This iterator equals constBegin() if the map is empty. .PP See also constBegin() and TQMapConstIterator. .SH "bool TQMap::contains ( const Key & k ) const" -Returns TRUE if the map contains an item with key \fIk\fR; otherwise returns FALSE. +Returns true if the map contains an item with key \fIk\fR; otherwise returns false. .SH "size_type TQMap::count ( const key_type & k ) const" Returns the number of items whose key is \fIk\fR. Since TQMap does not allow duplicate keys, the return value is always 0 or 1. .PP @@ -420,7 +420,7 @@ See also isEmpty(). .SH "void TQMap::detach ()\fC [protected]\fR" If the map does not share its data with another TQMap instance, nothing happens; otherwise the function creates a new copy of this map and detaches from the shared one. This function is called whenever the map is modified. The implicit sharing mechanism is implemented this way. .SH "bool TQMap::empty () const" -Returns TRUE if the map contains no items; otherwise returns FALSE. +Returns true if the map contains no items; otherwise returns false. .PP This function is provided for STL compatibility. It is equivalent to isEmpty(). .PP @@ -457,16 +457,16 @@ Returns an iterator pointing to the element with key \fIk\fR in the map. Returns end() if no key matched. .PP See also TQMapConstIterator. -.SH "iterator TQMap::insert ( const Key & key, const T & value, bool overwrite = TRUE )" -Inserts a new item with the key, \fIkey\fR, and a value of \fIvalue\fR. If there is already an item whose key is \fIkey\fR, that item's value is replaced with \fIvalue\fR, unless \fIoverwrite\fR is FALSE (it is TRUE by default). In this case an iterator to this item is returned, else an iterator to the new item is returned. +.SH "iterator TQMap::insert ( const Key & key, const T & value, bool overwrite = true )" +Inserts a new item with the key, \fIkey\fR, and a value of \fIvalue\fR. If there is already an item whose key is \fIkey\fR, that item's value is replaced with \fIvalue\fR, unless \fIoverwrite\fR is false (it is true by default). In this case an iterator to this item is returned, else an iterator to the new item is returned. .SH "TQPair<iterator, bool> TQMap::insert ( const value_type & x )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Inserts the (key, value) pair \fIx\fR into the map. \fIx\fR is a TQPair whose \fCfirst\fR element is a key to be inserted and whose \fCsecond\fR element is the associated value to be inserted. Returns a pair whose \fCfirst\fR element is an iterator pointing to the inserted item and whose \fCsecond\fR element is a bool indicating TRUE if \fIx\fR was inserted and FALSE if it was not inserted, e.g. because it was already present. +Inserts the (key, value) pair \fIx\fR into the map. \fIx\fR is a TQPair whose \fCfirst\fR element is a key to be inserted and whose \fCsecond\fR element is the associated value to be inserted. Returns a pair whose \fCfirst\fR element is an iterator pointing to the inserted item and whose \fCsecond\fR element is a bool indicating true if \fIx\fR was inserted and false if it was not inserted, e.g. because it was already present. .PP See also replace(). .SH "bool TQMap::isEmpty () const" -Returns TRUE if the map contains no items; otherwise returns FALSE. +Returns true if the map contains no items; otherwise returns false. .PP See also count(). .SH "TQValueList<Key> TQMap::keys () const" |