[Qgis-developer] STL vs. Qt containers

Mateusz Loskot mateusz at loskot.net
Sun Oct 29 15:05:17 EST 2006


Tim Sutton wrote:
> Hi
> On 28/10/2006, at 21:45, Mateusz Loskot wrote:
> 
>>
>> Finally, what's simpler and less error prone comparing to this?
>>
>> std::copy(lst.begin(), lst.end(),
>>           std::ostream_iterator<int>(std::cout, "\n"));
> 
> QStringList myList;
> myList << "Hello" << "World";
> QString myString = myList.join(" ");
> 
> Personally I find the QT containers and iterators very easy and the stl
> ones always requiring me to look in some book / google to remind myself
> how they work.

Tim,

No doubts, it requires to spent some time on self-learning.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Qgis-developer mailing list