Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> C++

การเปลี่ยนแปลงสำคัญใน C++11 (The Biggest Changes)


C++11 เผยแพร่ 2011 นำการปรับปรุงใหญ่ๆ มาหลายอย่าง (รายการเดียวกับ C++11 Overview)

  • Initializer lists
  • Automatic type deduction
  • Rvalue references and move constructors
  • constexpr – Generalized constant expressions
  • Modification to the definition of plain old data
  • Uniform initialization
  • Range-based for loop
  • Lambda functions and expressions
  • Alternative function syntax
  • Explicit overrides and final
  • A constant null pointer, nullptr
  • Strongly typed enumerations
  • Right angle bracket not being treated as an operator
  • Variadic templates
  • Multithreading memory model
  • Added Hash tables to the STL
  • Added Regular expressions to the Standard Library
  • Added General-purpose smart pointers like shared_ptr, weak_ptr, etc

รายการเต็ม: Wikipedia C++11