[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: std::swap replacement?
From: Esben Mose Hansen <kde () mosehansen ! dk>
Date: 2005-01-30 23:17:42
Message-ID: 200501310016.41095.kde () mosehansen ! dk
[Download RAW message or body]
On Thursday 27 January 2005 22:39, Thiago Macieira wrote:
> Esben Mose Hansen wrote:
> >Can I do something like this in QTL for QValueList<T>?
>
> Yes
[...]
>
> That's more or less STL's definition of swap:
>
[...]
>
> Since QTL's containers are implicitly shared, the operation is O(1) in CPU
> time and memory.
Thanks for you answer!
Are you telling me just to use STL? I was under the impression that we do not
use STL with KDE (core) applications. I am wrong? I have more than a few
places where a algorithm would yield better code than my current
implementation.
--
regards. Esben
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic