有没有什么很酷的STL项目?

发布于 2024-08-02 01:37:04 字数 157 浏览 2 评论 0原文

我想通过快速浏览真实的项目源代码来学习STL

在哪里可以找到使用 STL 的高质量项目?

I want to learn STL by quick browsing of real project source.

Where can I find a high quality project that uses STL?

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

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

发布评论

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

评论(5

開玄 2024-08-09 01:37:05

Notepad++:仅限纯Win32 + STL!

基于强大的编辑组件
Scintilla、Notepad++ 是用 C++ 编写的
并使用纯 Win32 API 和 STL
确保更高的执行速度和
更小的程序大小。 通过优化为
尽可能多的例行公事
Notepad++ 失去了用户友好性
努力减少世界碳排放
二氧化碳排放量。 当使用较少的 CPU 时
电源,PC可以节流并且
降低功耗,从而
更加绿色的环境。

Notepad++: pure Win32 + STL only!

Based on a powerful editing component
Scintilla, Notepad++ is written in C++
and uses pure Win32 API and STL which
ensures a higher execution speed and
smaller program size. By optimizing as
many routines as possible without
losing user friendliness, Notepad++ is
trying to reduce the world carbon
dioxide emissions. When using less CPU
power, the PC can throttle down and
reduce power consumption, resulting in
a greener environment.

岛徒 2024-08-09 01:37:05

请注意,STL 部分包含在 C++ 标准本身中。 这使得 http://www.research.att.com 上列出的大多数产品/~bs/applications.html 有趣。 该列表混合了专有项目和开源项目。

Note that STL is partly included in the C++ standard itself. That makes most of the products listed at http://www.research.att.com/~bs/applications.html interesting. The list is a mix of proprietary and open source projects.

溇涏 2024-08-09 01:37:05

不完全是您问题的答案,但如果您不了解 STL/模板,您会发现基于 STL 的代码有时是,呃...,原始的。

例如,如果下面的代码...

std::for_each( s.begin(), s.end(),
   std::bind1st( std::mem_fun( &MyClass::MyMethod ), this ) );

...让您感到毛骨悚然(对我来说确实如此),那么如果浏览一些 STL 密集型代码,您就会大吃一惊。

如果你想学习 STL,单独尝试 STL 的每个类/函数也是一个好主意。 例如,采用 http://www.cplusplus.com/reference/stl/分别使用容器和辅助函数。

较难的部分将出现在标头中。 和<功能>,但这是我个人的观点......

Not exactly an answer to your question, but if you have no knowledge of STL/templates, you'll find STL-based code to be sometimes, er..., raw.

For example, if the following code...

std::for_each( s.begin(), s.end(),
   std::bind1st( std::mem_fun( &MyClass::MyMethod ), this ) );

... gives you the creeps (it did, for me), then you're for a bad surprise if browsing some STL intensive code.

If you want to learn STL, trying each and every class/function of STL, separatly, would be a good idea, too. For example, take http://www.cplusplus.com/reference/stl/ and play with both the containers, and the helper functions separately.

The harder one will be in header <algorithm> and <functional>, but this is my personal viewpoint....

陈甜 2024-08-09 01:37:05

并添加到 Araks 答案中。 就像 Notepad++、SQLyog 一样,mySQL 客户端是另一个使用纯 Win32 API 构建的很酷的应用程序,并且还具有 Scintilla 编辑功能成分。 因此它超轻且快速。 源代码可从他们的网站获得。

And to add onto Araks answer. Just like Notepad++, SQLyog, a mySQL client is another cool App built with pure Win32 API and also has the Scintilla editing component. it is therefore super lightweight and fast. The source code is available from their website.

眼眸里的那抹悲凉 2024-08-09 01:37:05

Boost 库 包含一些可用的最高质量的 C++ 代码,并且严重依赖于 STL。

The Boost library contains some of the highest quality C++ code available, and relies heavily on the STL.

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