|
|
On Sunday 21. May 2006 09:06, Scott Aron Bloom wrote:
> Ill answer the -v.... :)
>
> Many of the boost/stl algorithm methods/templates allow you to do some
> pretty cool things with function objects on any container.
>
> So, without the iterator classes, you just cant use em.
Let me simply quote from qstring.h (since Qt 4.0):
typedef QChar *iterator;
typedef const QChar *const_iterator;
typedef iterator Iterator;
typedef const_iterator ConstIterator;
iterator begin();
const_iterator begin() const;
const_iterator constBegin() const;
iterator end();
const_iterator end() const;
const_iterator constEnd() const;
// STL compatibility
inline void push_back(QChar c) { append(c); }
inline void push_back(const QString &s) { append(s); }
inline void push_front(QChar c) { prepend(c); }
inline void push_front(const QString &s) { prepend(s); }
The very same applies to QByteArray.
Simon
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|