[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdelibs/kutils/tests
From:       Marc Mutz <marc () klaralvdalens-datakonsult ! se>
Date:       2005-08-08 13:59:01
Message-ID: 200508081559.03456.marc () klaralvdalens-datakonsult ! se
[Download RAW message or body]

On Monday 08 August 2005 14:15, you wrote:
> Today 14:15:24
>
> On Monday 08 August 2005 13:51, Marc Mutz wrote:
> > On Monday 08 August 2005 13:35, André Wöbbeking wrote:
> > > does this work with Qt's iterators?
> >
> > Unless QT_NO_STL is in effect, I don't see why it shouldn't.
>
> from GCC 3.4 include:
>
>   template<typename _Iterator>
>     class reverse_iterator
>     : public iterator<typename
> iterator_traits<_Iterator>::iterator_category, typename
> iterator_traits<_Iterator>::value_type, typename
> iterator_traits<_Iterator>::difference_type, typename
> iterator_traits<_Iterator>::pointer, typename
> iterator_traits<_Iterator>::reference>
>
> 1) I don't know if Qt offers the required traits

It doesn't need to. std::iterator_traits is partially specialized on pointer 
types, and otherwise tries to find the category as a nested type, which Qt3 
does provide unless QT_NO_STL is defined, and Qt4 provides unconditionally.

> 2) std::reverse_bidirectional_iterator() doesn't seem to exist anymore

Got it from SGI's site. Might be an SGI extension, but is trivial to 
implement, of course.

Marc

-- 
Marc Mutz -- marc@klaralvdalens-datakonsult.se, mutz@kde.org
phone: +49 521 521 45 45; mobile: +49 177 32 94 700
Klarälvdalens Datakonsult AB, Platform-independent software solutions


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic