Is it good to use STL in making new softwares? [closed]
Hi I am currently working on an open source project and want to use STL in it. But I am confused that is correct to depend on STL only or it will be good to use Qt like libraries. Because I want to make it cross platform supported. Please suggest.
STL: Standard Template Library for C++
That is some confusion in this question.
STL is a part of Standard Library of C++; specifically covering containers and algorithms (and iterators, as a glue between the two).
Qt is cross-platform application framework which purpose is, first and foremost, to provide facilities for abstracting you from platform. It also covers some of functionality provided by STL (i.e. it provides its own containers: as I understand, mostly for historical reasons).
You can freely mix'n'match both libraries. AFAIK you can even use STL algorithms on Qt containers (meaning that Qt containers are STL compliant).
So, answering your question, it is of course good to use STL for new software: provided it is properly supported by your compiler, and you know how to use it.
精彩评论