类似于cplusplus.com的C++11网站

12

一个简单的问题:有没有人知道类似于 cplusplus.com 的网站(可以很好地组织函数和头文件,并包含示例(这对我非常重要)),并且它是更新到 C++11 的。

我问这个问题是因为我找不到任何类似的网站。当涉及到查阅成员函数等内容时,我也看不懂 C++ 标准 PDF。

此外,用谷歌搜索特定的东西通常是无用的(如果你不相信我,请试着找一些原子头文件的示例)。


3
我相当肯定这样的事情目前还不存在。 - Jerry Coffin
很少有人喜欢阅读标准本身。实际上,大部分程序员并不需要阅读它。 - David Thornley
我会说,目前您可以在维基百科上找到最好的信息:http://en.wikipedia.org/wiki/C%2B%2B0x - Necrolis
感谢 @Necrolis-tnx 提供的答案,但我想说并没有原子示例,但据我所知这是目前最好的选择。 - NoSenseEtAl
我知道,但GCC和VS已经实现了很多东西。我不是在抱怨,因为那些东西是免费的,我没有权利“要求”任何东西。 :) 我只是在想。尽管维基百科的文章还可以,但它并没有涵盖所有内容,而且相当基础。 - NoSenseEtAl
显示剩余2条评论
3个回答

21

cppreference.com 是一个很棒的C++03参考资料。

如今,它已经相当全面地涵盖了C++11的特性。虽然它没有完全覆盖所有内容,但已经非常接近了。


6
我同意这个观点,最近C++11的信息也有很大的增长。我也做出了一些贡献。 - Ricky65

5

我调查了Ashot提到的msdn文档。我认为记录一下这个列表中不是标准的头文件(扩展)和当前缺少哪些C++11头文件会很有趣。以下是结果:

<algorithm>
<allocators>  // not standard
<array>
<atomic>      // missing
<bitset>
<cassert>
<ccomplex>    // missing
<cctype>
<cerrno>
<cfenv>       // missing
<cfloat>
<chrono>      // missing
<ciso646>
<climits>
<clocale>
<cmath>
<codecvt>
<complex>
<condition_variable>  // missing
<csetjmp>
<csignal>
<cstdarg>
<cstdbool>     // missing
<cstddef>
<cstdint>      // missing
<cstdio>
<cstdlib>
<cstring>
<ctgmath>       // missing
<ctime>
<cvt/wbuffer>  // not standard
<cvt/wstring>  // not standard
<cwchar>
<cwctype>
<deque>
<exception>
<forward_list>
<fstream>
<functional>
<future>      // missing
<hash_map>    // not standard
<hash_set>    // not standard
<initializer_list>  // missing
<iomanip>
<ios>
<iosfwd>
<iostream>
<iso646.h>
<istream>
<iterator>
<limits>
<list>
<locale>
<map>
<memory>
<mutex>        // missing
<new>
<numeric>
<ostream>
<queue>
<random>
<ratio>        // missing
<regex>
<scoped_allocator>  // missing
<set>
<sstream>
<stack>
<stdexcept>
<streambuf>
<string>
<strstream>
<system_error>
<thread>        // missing
<tuple>
<type_traits>
<typeindex>     // missing
<unordered_map>
<unordered_set>
<utility>
<valarray>
<vector>

2
据我所知,VS11仅更新了整个标准库。然而,核心语言则是另一回事 :) - NoSenseEtAl

3

我认为MSDN文档对您可能会有用。

它包含VS 2010中已实现的库的文档。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接