[Qgis-developer] STL vs. Qt containers

Tim Sutton tim at linfiniti.com
Sun Oct 29 09:20:53 EST 2006


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.

Regards

-- 
Tim Sutton

Visit http://qgis.org for a great Open Source GIS
Home Page: http://linfiniti.com
Skype: timlinux
MSN: tim_bdworld at msn.com
Yahoo: tim_bdworld at yahoo.com
Jabber: timlinux
Irc: timlinux on #qgis at freenode.net



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20061029/e8f0c331/attachment.html


More information about the Qgis-developer mailing list