VS2005 的 STL 最佳实现是什么?

发布于 2024-07-07 07:52:45 字数 159 浏览 3 评论 0原文

我目前正在使用 VS2005 的 STL 默认实现,但我不太满意 。 也许有更好的东西?

I'm currently using default implementation of STL for VS2005 and I'm not really satisfied with it. Perhaps there is something better?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

逆蝶 2024-07-14 07:52:45

Dinkumware STL 实现(随 VS2005 提供)实际上相当不错。 STL 是一个通用库,因此几乎总是可以为非常特定的用例编写更好的东西。

我知道以下替代实现,但我从未在 VS2005 中使用它们:

SGI 标准模板库 3.3:
http://www.sgi.com/tech/stl/

STLport 5.1.6 (源自 SGI 实现):
http://www.stlport.org/

SGI 和 STLport 都首先执行大小/长度检查在operator==中进行测试,所以你可能会喜欢它。 它们也可以免费下载和使用。

从理论上讲,从一种 STL 实现更改为另一种 STL 实现应该很容易。 然而,我从一些同事那里听说情况并非总是如此。 他们遇到过编译器错误,发现自己无意中使用了非标准功能,或者不知不觉地依赖了特定于特定 STL 实现的某些行为。

Dinkumware STL 实现的一个好处是它已经通过 VS2005 C++ 编译器进行了良好的测试。

如果您决定尝试这些替代方案,祝您好运! 让我们知道进展如何。

The Dinkumware STL implementation (supplied with VS2005) is actually quite good. The STL is a general purpose library and so it is almost always possible to write something better for very specific use cases.

I'm aware of the following alternative implementations, but I've never used them with VS2005:

SGI Standard Template Library 3.3:
http://www.sgi.com/tech/stl/

STLport 5.1.6 (derived from SGI implementation):
http://www.stlport.org/

Both SGI and STLport implement the size/length check as the first test in operator== and so you might like it. They are also both free to download and use.

Changing from one STL implementation to another, in theory, should be easy. However, I've heard from some colleagues that it is not always so. They've tripped over compiler bugs, found that they've inadvertently used non-standard features, or unknowingly relied on some behaviour specific to a particular STL implementation.

One good thing about the Dinkumware STL implementation is that it has been well tested with the VS2005 C++ compiler.

If you decide to try out these alternatives, good luck! And let us know how it goes.

殤城〤 2024-07-14 07:52:45

STLPort 怎么样?

http://www.stlport.org/

How about STLPort?

http://www.stlport.org/

梦在夏天 2024-07-14 07:52:45

Dinkumware 据称是 C++ 标准库最符合标准的实现之一。 您可以花 200 美元获得 VS2005 的二进制许可证

Dinkumware supposedly produces one of the most standards-compliant implementations of the C++ standard library. You can get a binary licence for VS2005 for $200.

念三年u 2024-07-14 07:52:45

还有 Apache STL,但正如其他人指出的那样,我相信 Dinkumware 是您最好的选择。

There is also Apache STL, but as others have noted, I believe Dinkumware is your best bet.

亚希 2024-07-14 07:52:45

根据您的限制,您可能会发现 Electronic Arts 的 STL 实现很有趣:EASTL

Depending on your constraints, you may find Electronic Arts' STL implementation as interesting: EASTL

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文