QValueListConstIterator(3qt)
π QValueListConstIterator π
okay bestie, welcome to the qvaluelistconstiterator.3qt page from the Qt 3 manual β¨ this is the whole thing, every last crumb, just... with vibes π«Ά
β¨ NAME β¨
QValueListConstIterator β Const iterator for QValueList π¦
β¨ SYNOPSIS β¨
so first things first, the glow-up announcement: All the functions in this class are reentrant when Qt is built with thread support.</p> π
#include <qvaluelist.h>
πΈ Public Members πΈ
typedef T value_typetypedef const T * pointertypedef const T & referenceQValueListConstIterator ()QValueListConstIterator ( const QValueListConstIterator<T> & it )QValueListConstIterator ( const QValueListIterator<T> & it )bool operator== ( const QValueListConstIterator<T> & it ) constbool operator!= ( const QValueListConstIterator<T> & it ) constconst T & operator* () constQValueListConstIterator<T> & operator++ ()QValueListConstIterator<T> operator++ ( int )QValueListConstIterator<T> & operator-- ()QValueListConstIterator<T> operator-- ( int )
β¨ DESCRIPTION β¨
The QValueListConstIterator class provides a const iterator for QValueList. no cap π
In contrast to QValueListIterator, this class is used to iterate over a const list. It does not allow modification of the values of the list since that would break const semantics. it's giving "look but don't touch" and honestly? iconic boundary-setting π
You can create the appropriate const iterator type by using the const_iterator typedef provided by QValueList. yes bestie, use the typedef, that's the move π
For more information on QValueList iterators, see QValueListIterator.
See also QValueListIterator, QValueList, Qt Template Library Classes, and Non-GUI Classes.
π¦ Member Type Documentation π¦
QValueListConstIterator::pointer
Pointer to value_type. π
QValueListConstIterator::reference
Reference to value_type. π«Ά
QValueListConstIterator::value_type
The type of value. π
β¨ MEMBER FUNCTION DOCUMENTATION β¨
QValueListConstIterator::QValueListConstIterator ()
Creates un uninitialized iterator. (yes, "un un" β that's literally what it says, I'm not fixing it, I'm just delivering the tea π) this one is empty, unbothered, moisturized, in its lane π
QValueListConstIterator::QValueListConstIterator ( const QValueListConstIterator<T> & it )
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Constructs a copy of the iterator it. copy-paste but make it iterator energy β¨
QValueListConstIterator::QValueListConstIterator ( const QValueListIterator<T> & it )
Constructs a copy of the iterator it. πͺ
bool QValueListConstIterator::operator!= ( const QValueListConstIterator<T> & it ) const
Compares this iterator with it and returns TRUE if they point to different items; otherwise returns FALSE. they're not the same, periodt π
const T & QValueListConstIterator::operator* () const
Asterisk operator. Returns a reference to the current iterator item. β¨ the main character reveal π¬
QValueListConstIterator<T> & QValueListConstIterator::operator++ ()
Prefix ++ makes the succeeding item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the end of the list. Incrementing the iterator returned by end() causes undefined results. π bestie do NOT do that, I'm begging π¨
QValueListConstIterator<T> QValueListConstIterator::operator++ ( int )
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Postfix ++ makes the succeeding item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the end of the list. Incrementing the iterator returned by end() causes undefined results. π same warning, different flavor of plus-plus
QValueListConstIterator<T> & QValueListConstIterator::operator-- ()
Prefix -- makes the previous item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the beginning of the list. Decrementing the iterator returned by begin() causes undefined results. π going backwards past the start is a no, we don't do that here
QValueListConstIterator<T> QValueListConstIterator::operator-- ( int )
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Postfix -- makes the previous item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the beginning of the list. Decrementing the iterator returned by begin() causes undefined results. π₯ yes the same caveat, it's load-bearing, keep it
bool QValueListConstIterator::operator== ( const QValueListConstIterator<T> & it ) const
Compares this iterator with it and returns TRUE if they point to the same item; otherwise returns FALSE. twin flames detected π«Ά
β¨ SEE ALSO β¨
go read the docs bestie, links are right there πΈ
β¨ COPYRIGHT β¨
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. π
β¨ AUTHOR β¨
Generated automatically from the source code. π€ (not a human, not a girlie, just a script doing its little job β¨)
β¨ BUGS β¨
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. π fr fr, a good bug report is a love letter
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. π so like... it works, but it's the unofficial side of the family
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qvaluelistconstiterator.3qt) and the Qt version (3.3.8). π¬
β οΈ tiny recap for the group chat: the iterators here can't tell when you've wandered off the end of the list, and hittingend()with++orbegin()with--is undefined results. stay safe out there π§
and that's the whole page, bestie π this was Trolltech AS, 2 February 2007, from the QValueListConstIterator(3qt) era β mwah, slay, go write some const-correct iteration ππβ¨
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms