C++11特性

最近打算照着源文档学习C++特性,先从C++11的特性开始。

学习:C++11 - cppreference.com

C++11

C++11是继C++98之后的最重要的更新,也是C++的第二个主要版本。它在标准化实践上和提高C++程序员可用的抽象性上做了大量的变化。

它最终由 ISO 在 2011 年 8 月 12 日之前承认,它曾经被叫做 'C++0x' ,因为它曾被期待在 2010 年之前发布。C++03 到 C++11 中间花了 8 年时间,所以它是迄今为止最长的版本间隔。从此以后, C++ 规则地每 3 年更新一次。

下面这些特性被合并到C++11:

核心语言特性

  • auto and decltype
  • defaulted and deleted functions
  • final and override
  • trailing return type
  • rvalue references
  • move constructors and move assignment operators
  • scoped enums
  • constexpr and literal types
  • list initialization
  • delegating and inherited constructors
  • brace-or-equal initializers
  • nullptr
  • long long
  • char16_t and char32_t
  • type aliases
  • variadic templates
  • generalized (non-trivial) unions
  • generalized PODs (trivial types and standard-layout types)
  • Unicode string literals
  • user-defined literals
  • attributes
  • lambda expressions
  • noexcept specifier and noexcept operator
  • alignof and alignas
  • multithreaded memory model
  • thread-local storage
  • GC interface (removed in C++23)
  • range-for (based on a Boost library)
  • static_assert (based on a Boost library)

库特性

头文件

  • <array>
  • <atomic>
  • <cfenv>
  • <chrono>
  • <cinttypes>
  • <condition_variable>
  • <cstdint>
  • <cuchar>
  • <forward_list>
  • <future>
  • <initializer_list>
  • <mutex>
  • <random>
  • <ratio>
  • <regex>
  • <scoped_allocator>
  • <system_error>
  • <thread>
  • <tuple>
  • <typeindex>
  • <type_traits>
  • <unordered_map>
  • <unordered_set>

库特性

缺陷报告

C++11 中修正的缺陷报告(核心 741 个,库 868 个)

编译器支持

主条目: C++ 编译器支持 

C++11 核心语言功能特性

 C++11 库功能特性

学习:C++11 - cppreference.com

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值