简体   繁体   English

在代码中使用stlport库的主要原因是什么?

[英]What the main reason to use stlport library in the code?

I saw someone use stlport in visual c++, but I think standard c++ library is included with visual c++ already? 我看到有人在Visual c ++中使用stlport,但是我认为Visual c ++已经包含了标准c ++库? what's the advantage to use stlport? 使用stlport有什么优势? is stlport free? 免费吗?

Most likely either the code was written before visual c++ had a full implementation (for example in VC6) or the code is cross platform and the author wanted to make sure the same library was there on each platform. 很有可能是在Visual c ++全面实现之前(例如在VC6中)编写的代码,或者代码是跨平台的,因此作者希望确保每个平台上都存在相同的库。 (That's not so much of an issue recently but even 2 or 3 years ago there were much more substantial differences from the standard in each implementation) (最近这不是什么大问题,但是甚至在2或3年前,每种实施方式中的标准都存在更多实质性差异)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM