STLport和标准STL的不同 [英] different of STLport and Standard STL
本文介绍了STLport和标准STL的不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
有人说STLport比Visual Studio提供的标准STL更好,无论是假的还是假的?
我想知道STLport的优势.
感谢
hello
someone say that STLport is better than Standard STL offer by visual studio,ture or false?
And I want to know the advantage of STLport.
thanks
推荐答案
没有标准STL 这样的东西. 标准C ++库提供了一个编译器,该标准允许编译器的作者为他们提供所需的任何实现,只要它满足标准要求即可.
在大多数编译器仅提供部分标准C ++库的时候, STLport 提供了 STL 的单个实现. >(标准C ++库的子集)在大多数时候可用的C ++编译器上进行编译.
如今,所有C ++编译器都提供完整的标准C ++库,因此 STLport 已经过时了.
欢呼声,
AR
Hi,
There is no such thing as standard STL. There is a compiler provided Standard C++ Library and the standard lets the compilers authors provide it with whichever implementation they want as long as it meets the standard requirements.
At a time where most compilers provided only a part of the Standard C++ Library, STLport provided a single implementation of STL (a subset of the Standard C++ Library) compiling on most of that time available C++ compilers.
Nowadays, all C++ compilers provide the full Standard C++ Library so STLport is widely obsolete.
cheers,
AR
如果您使用的是VC6,则提供的标准STL不是线程安全的.我们遇到了问题,因为它在std :: string调用中的分配之间共享变量,这最终会导致内存损坏.
改用StlPort可以解决所有这些问题.
请参阅 http://support.microsoft.com/kb/813810 [
If your using VC6, the standard STL provided is NOT threadsafe. We had issues due to it sharing variables between allocations in the std::string calls which would eventually lead to memory corruption.
Changing to StlPort solved all these issues.
See http://support.microsoft.com/kb/813810[^] for details.
您应该阅读STLport的文档,看看有哪些内容.他们说使用它优于标准STL.
You should read the documentation of STLport and see what they say is the advantage of using it over standard STL.
这篇关于STLport和标准STL的不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文