“现代c ++”的示例在行动? [英] Examples of "modern c++" in action?

查看:112
本文介绍了“现代c ++”的示例在行动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于STL的新的和完全修改的技巧和黑暗角落,请访问隐藏的特征和STL的黑角

我一直使用更多的现代c ++结构,表面而不是无处不在。我正在寻找开源项目来研究是现代C ++和STL使用的好例子。

I've been using more "modern" c++ constructs for a while, but kind of superficially and not everywhere. I'm looking for open source projects to study that are good examples of Modern C++ and STL usage.

像Meyer的Effective STL中建议的东西,例如试图避免循环,并用更多的功能结构,使用boost :: bind和boost :: function等等替换它们。这些仍然感觉有点不自然,当我得到一些快速和工作,我倾向于回到libc和string.h(你可以有我的strtok,当你撬起我从冷,死,手)。

Things like what is suggested in Meyer's "Effective STL", such as trying to avoid for loops and replace them with more functional constructs, using boost::bind and boost::function, etc. These still feel a little unnatural to me, and when I have to get something done fast and working, I tend to drop back to libc and string.h (you can have my strtok when you pry it from my cold, dead, hands).

然而,我也有积极的经验,发现什么将是一个剧烈的变化简化,因为我使用这些结构,或者能够实现一些几行代码,因为我有合适的操作符和functors。此外,我最近一直更加注意并发,所以这对我来说变得更加重要。

However, I've also had the positive experience of finding what would be a drastic change simplified because I've used these constructs, or being able to implement something with just a few lines of code because I had the right operators and functors lying around. In addition, I've recently been paying more attention to concurrency, and so this is becoming even more important to me.

您可以推荐一些写得很好的开源项目,这些项目大量使用STL和其他我可以学习的现代c ++技术吗?我对应用程序代码特别感兴趣,浏览boost源是有帮助的,但它的必要性非常一般,因为它的库代码。

Can you recommend some examples of well-written open source projects that make heavy use of the STL and other modern c++ techniques that I could study? I'm particularly interested in application code, browsing the boost sources has been helpful but it's by necessity very general because it's library code.

我对中型到大型项目感兴趣,至少有几万条线。很容易找到几百行长的例子,但这不是太有用。

I'm interested in medium sized to larger projects, at least a few tens of thousands of lines. It's pretty easy to find examples that are a few hundred lines long but that's not too helpful.

谢谢。

推荐答案

Boost如何在开源项目中使用:

http://www.boost.org/ users / uses_open.html

Here, you find several interesting examples of how Boost is being used in open source projects:
http://www.boost.org/users/uses_open.html

这篇关于“现代c ++”的示例在行动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆