Development
Code
C++
EN
RU
C++
C++ course: zero to hero
From the first toolchain to templates, concurrency, performance and three capstone projects, lesson by lesson.
Open
→
All articles
cpp/
basics/
(1)
C++ basics: what the language is, where it is used and a hello world
course/
(163)
C++ course: from the toolchain to capstone projects
1. Getting started
(11)
Chapter overview
1.1 Install a C++ toolchain on Linux
1.2 Install a C++ toolchain on Windows
1.3 Set up an editor, a compiler and GDB
1.4 Your first C++ program
1.5 Read compiler warnings
1.6 Headers, object files and the linker
1.7 Variables and fundamental types
1.8 Operators and expressions
1.9 Conditions and loops
1.10 Functions
2. Functions, references and containers
(14)
Chapter overview
2.1 References
2.2 const and const correctness
2.3 Overloading and default arguments
2.4 Recursion
2.5 Namespaces
2.6 Scope and lifetime
2.7 std::string
2.8 std::string_view
2.9 std::vector
2.10 std::array, C arrays and std::span
2.11 auto, decltype and structured bindings
2.12 Enumerations
2.13 Bits, bit fields and std::bitset
3. Classes and RAII
(14)
Chapter overview
3.1 Classes and objects
3.2 Constructors and destructors
3.3 Member initializer lists
3.4 RAII
3.5 Static members
3.6 const member functions and mutable
3.7 Operator overloading
3.8 Copy constructors and copy assignment
3.9 Move constructors and move assignment
3.10 The rule of zero and the rule of five
3.11 Inheritance
3.12 Virtual functions and polymorphism
3.13 Abstract classes and interfaces
4. Templates and generic code
(13)
Chapter overview
4.1 Function templates
4.2 Class templates
4.3 Template specialisation
4.4 Variadic templates
4.5 Fold expressions
4.6 Type traits and if constexpr
4.7 Concepts
4.8 Constraints and requires expressions
4.9 Type aliases and alias templates
4.10 Forwarding references and std::forward
4.11 The curiously recurring template pattern
4.12 Template metaprogramming
5. Containers and algorithms
(17)
Chapter overview
5.1 Iterators
5.2 Algorithms
5.3 Sorting and searching
5.4 Lambda expressions
5.5 Function objects and std::function
5.6 std::map and std::unordered_map
5.7 std::set and std::unordered_set
5.8 deque, list and forward_list
5.9 stack, queue and priority_queue
5.10 Ranges and views
5.11 Numeric algorithms
5.12 Tuples and pairs
5.13 std::optional
5.14 std::variant
5.15 std::format
5.16 std::print and std::println
6. Text, streams and time
(13)
Chapter overview
6.1 String streams
6.2 iostream formatting
6.3 iostream formatting
6.4 iostream formatting
6.5 iostream formatting
6.6 Parsing a text file
6.7 Regular expressions
6.8 Clocks and durations
6.9 Calendar dates and formatting
6.10 iostream formatting
6.11 Bytes, code points and UTF-8
6.12 Arguments and environment
7. Errors, debugging and testing
(11)
Chapter overview
7.1 Exceptions
7.2 Exception safety
7.3 Custom exception types
7.4 iostream formatting
7.5 std::expected
7.6 Assertions and static_assert
7.7 Debugging with GDB
7.8 Sanitizers
7.9 Unit testing without a framework
7.10 Testing files and time
8. Pointers and manual memory
(11)
Chapter overview
8.1 Pointers
8.2 Pointer arithmetic
8.3 new and delete
8.4 A vector-like class
8.5 std::unique_ptr
8.6 std::shared_ptr and std::weak_ptr
8.7 Custom deleters
8.8 Stack, heap, alignment and sizeof
8.9 Object lifetime
8.10 Allocators and std::pmr
9. Build systems and tooling
(9)
Chapter overview
9.1 Make
9.2 Make variables and pattern rules
9.3 CMake
9.4 CMake targets and libraries
9.5 CTest
9.6 Debug, Release and sanitizer builds
9.7 find_package and linking libraries
9.8 Static and shared libraries
10. Concurrency
(14)
Chapter overview
10.1 std::thread
10.2 Mutexes and locks
10.3 Condition variables
10.4 Atomics
10.5 The memory model
10.6 std::async and std::future
10.7 packaged_task and promise
10.8 A thread pool
10.9 Concurrency patterns
10.10 std::jthread and stop tokens
10.11 Coroutines
10.12 Generators
10.13 Parallel algorithms
11. Performance and design
(14)
Chapter overview
11.1 Measuring performance
11.2 Profiling with gcov
11.3 Cache and data layout
11.4 Copy elision and RVO
11.5 constexpr
11.6 consteval and constinit
11.7 The pimpl idiom
11.8 Type erasure
11.9 The visitor pattern
11.10 Strategy and policy
11.11 The observer pattern
11.12 Factories and builders
11.13 API design
12. C++20/23 and capstone projects
(21)
Chapter overview
12.1 C++20 modules
12.2 C++98 to C++23 in one file
12.3 C++20 features
12.4 C++23 features
12.5 Reading legacy C++
12.6 C++ and C side by side
12.7 Capstone 1: a JSON tokenizer
12.8 Capstone 1: the parser
12.9 Capstone 1: a JSON value
12.10 Capstone 1: writing JSON
12.11 Capstone 1: testing the parser
12.12 Capstone 2: a task model
12.13 Capstone 2: saving tasks
12.14 Capstone 2: the command line
12.15 Capstone 2: error handling
12.16 Capstone 2: testing the tracker
12.17 Capstone 3: a tokenizer
12.18 Capstone 3: the inverted index
12.19 Capstone 3: queries and ranking
12.20 Capstone 3: measure and speed it up
errors/
(1)
Errors C++
gpp/
(1)
g++: building C++ from the command line
rest/
(1)
REST API requests in C++
sdl/
(1)
SDL C++
sfml/
(2)
SFML C++
tetris/
(1)
Tetris in C++ with the SFML2 library
vector/
(1)
Vector C++
Array of structures in C++
C++ compilation option - c
C++ classes
How to create an empty line in C + +
Problem solving in C++
Splitting C++ code into several files
Function overloading in C++
Pointers in C++
Function returns value
How to find out the type of variable C++
C++ Related Articles
C++
Make
Configure Make Install
curl
JSON