mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
3.8 KiB
3.8 KiB
C++ 11/14/17/20 On The Fly
Table of Contents
- Preface
- Chapter 01 Towards Modern C++
- 1.1 Deprecated Features
- 1.2 Compatibility with C
- Further Readings
- Chapter 02 Language Usability Enhancements
- 2.1 Constants
- nullptr
- constexpr
- 2.2 Variables & Initialization
- Conditional Statement
- Initializer List
- Structured binding
- 2.3 Type Deduction
- auto
- decltype
- Tail return type
- decltype(auto)
- 2.4 Control Flow
- if constexpr
- Range-based for loop
- 2.5 Templates
- External templates
- The ">"
- Type alias templates
- Default template parameters
- Variadic templates
- Fold expression
- 2.6 Object-oriented
- Delegate constructor
- Inheritance constructor
- Explicit virtual function overwrite
- override
- final
- Explicit delete default function
- Strongly typed enumerations
- 2.1 Constants
- Chapter 03 Language Runtime Enhancements
- 3.1 Lambda expression
- Basics
- Value capture
- Reference capture
- Implicit capture
- Expression capture
- Generic lambda
- Basics
- 3.2 Function object wrapper
- std::function
- std::bind/std::placeholder
- 3.3 rvalue reference
- lvalue, rvalue, prvalue, xvalue
- rvalue reference & lvalue reference
- Move semantics
- Perfect forwarding
- 3.1 Lambda expression
- Chapter 04 Sandard Library: Containers
- 4.1
std::arrayandstd::forward_list - 4.2 Unordered containers
std::unordered_setstd::unordered_map
- 4.3 Tuples
std::tuple- basic operation
- runtime indexing
- merge and iteration
- 4.1
- Chapter 05 Sandard Library: Pointers
- 5.1 RAII and reference counting
- 5.2
std::shared_ptr - 5.3
std::unique_ptr
- Chapter 06 Sandard Library: Regular Expression
- 6.1 Regular Expression Introduction
- Normal characters
- Special characters
- Determinative
- 6.2
std::regexand relatedstd::regexstd::regex_matchstd::match_results
- 6.1 Regular Expression Introduction
- Chapter 07 Parallelism and Concurrency
- 7.1
std::thread - 7.2
std::mutexandstd::unique_lock - 7.3
std::futureandstd::packaged_task - 7.4
std::condition_variable - 7.5
std::atomicand memory order - 7.6 Transactional memory
- 7.7 Coroutine
- 7.1
- Chapter 08 Sandard Library: File System
- 8.1 Documents and links
- 8.2
std::filesystem
- Chapter 09 Minor Features
- 9.1 New Types
long long int
- 9.2
noexceptand its operates - 9.3 Literal
- Raw string literal
- Custom string literal
- 9.4 Math Library
- 9.1 New Types
- Chapter 10 Outlook: Introduction of C++20
- Concept
- Range
- Module
- Coroutine
- Appendix 1: Further Study Materials
- Appendix 2: Modern C++ Best Practices
Table of Content | Last Chapter | Next Chapter: Preface
Licenses

This work was written by Ou Changkun and licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. The code of this repository is open sourced under the MIT license.