开发者

Is it good to use STL in making new softwares? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, v开发者_高级运维isit the help center for guidance. Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜