【问题标题】:Site like cplusplus.com for C++11类似 cplusplus.com 的 C++11 网站
【发布时间】:2011-04-14 13:32:05
【问题描述】:

一个简单的问题:有没有人知道像cplusplus.com 这样的网站(功能和标题组织得很好,包括示例(这对我来说非常重要))并且它是最新的(C++11)。

我问是因为我找不到任何这样的网站。在读取成员函数和类似的东西时,我也无法理解 C++ 标准 PDF。

此外,在谷歌上搜索特定内容通常是无用的(如果您不相信我,请尝试查找一些原子标头示例)。

【问题讨论】:

  • 我有理由确定不存在这样的东西
  • 没有多少人愿意阅读标准本身。它并不是真正适合大多数程序员阅读的。
  • 我想说维基百科可能是你现在能得到的最好的:en.wikipedia.org/wiki/C%2B%2B0x
  • 感谢@Necrolis-tnx 的回答,但就像我说的没有原子示例,但它是 AFAIK 可用的最好的东西
  • 考虑到最终草案是在昨天发布的,我相信 Jerry Coffin 走在了正确的轨道上。耐心点!

标签: c++ c++11 sites


【解决方案1】:

cppreference.com 是 C++03 的一个很好的参考。

这些天来,C++11 的特性变得非常全面。它没有全面覆盖所有内容,但已经非常接近了。

【讨论】:

  • 我第二个这个,最近C++11的资料也增加了不少。我自己也贡献了一些东西。
【解决方案2】:

我调查了 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>

【讨论】:

  • 仅用于更新 AFAIK VS11 提供了整个 std 库。核心语言是另一回事:)
【解决方案3】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-02-21
    • 2018-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-29
    • 2020-12-06
    相关资源
    最近更新 更多