Table of Contents

  • Home
  • I
  • Table of Contents

About Table of Content

This page is the starting point for my blog Modernes C++. A simple overview of my existing and upcoming posts.

This overview serves two purposes. At first, the structure gives you in one view an overview, which posts are already written and how you can find them. At second, I give you an outline of all posts, which will be written. I will successively refine the outline to make the future of this post transparent. This purpose is a more challenging task for me.

Multithreading in modern C++

Multithreading with C++17 and C++20

Application of Multithreading

Embedded programming with C++

Functional Programming

Design Patterns and Architectural Patterns



  • The Next Big Thing: C++20
  • Overview
    1. The Big Four
    2. The Core Language
    3. The Library
    4. Concurrency
  • Details
    1. Concepts
      1. Two Extremes and the Rescue with Concepts
      2. The Details
      3. The Placeholder Syntax
      4. Syntactic Sugar
      5. What we don't get
      6. Predefined Concepts
      7. Define Concepts
      8. Define Concepts (Logical Combination of other Concepts or Compile-Time Predicates)
      9. Defining Concepts with Requires Expressions
      10. Using Requires Expressions in C++20 as a Standalone Feature
      11. Define the Concepts Equal and Ordering
      12. Define the Concepts Regular and SemiRegular
      13. Check Types with Concepts - The Motivation
      14. Check Types with Concepts
      15. Concepts in C++20: An Evolution or a Revolution? 
    2. Ranges Library
      1. The Ranges Library
      2. Functional Pattern with the Ranges Library
      3. The Ranges Library in C++20: More Details
      4. Projections with Ranges
      5. Sentinels and Concepts with Ranges Algorithms
      6. Improved Iterators with Ranges
      7. Pythonic with the Ranges Library
      8. Pythons range Function, the Second
      9. Pythons map Function
    3. Coroutines
      1. A First Overview
      2. More Details
      3. An Infinite Data Stream with Coroutines
      4. Thread Synchronization with Coroutines
      5. cppcoro
        1. Coroutines with cppcoro
        2. Powerful coroutines with cppcoro
        3. Thread Pools with cppcoro
      6. co_return:
        1. Implementing Simple Futures with Coroutines
        2. Lazy Futures with Coroutines
        3. Executing a Future in a Separate Thread
      7. co_yield:
        1. An Infinite Data Stream with Coroutines
        2. A Generic Data Stream with Coroutines
      8. co_await
        1. Starting Jobs with Coroutines
        2. Automatically Resuming a Job with Coroutines on a Separate Thread
    4. Modules
      1. The Advantages of Modules
      2. A Simple math Modul
      3. Module Interface Unit and Module Implementation Unit
      4. Structure Modules
      5. Open Questions to Modules
      6. Private Module Fragment and Header Units
    5. The Core Language
      1. The Three-Way Comparison Operator
        1. The Three-Way Comparision Operator
        2. More Details to the Spaceship Operator
        3. Optimized Comparision with the Spaceship Operator
      2. Designated Initializers
      3. consteval and constinit
      4. Solving the Static Initialization Order Fiasco
      5. VariousTemplate Improvements with C++20
      6. More Powerful Lambdas with C++20
      7. More Lambda Features with C++20
      8. New Attributes with C++20
      9. volatile and other Small Improvements
    6. The Library
      1. std::span in C++20: Bounds-Safe Views for Sequences of Objects
      2. constexpr std::vector and std::string in C++20
      3. More Convenience Functions for Containers with C++20
      4. std::format
        1. The Basics
        2. Extend std::format for User-Defined Types
      5. More and More Utilities
      6. Calendar and Time-Zone
        1. Time of Day
        2. Calendar Date
        3. Handling Calendar Dates
        4. Time-Zones
      7. Safe Comparison of Integrals
      8. Feature Testing
      9. Bit Manipulation
    7. Concurrency
      1. Atomics
        1. References
        2. Synchronization with Atomics
        3. Performance Comparison of Condition Variables and Atomics
        4. Atomic Smart Pointers
      2. Semaphores
      3. Latches
      4. Barriers
      5. Cooperative Interruption of a Thread
      6. std::jthread
      7. Synchronized Output Streams
  • C++23

    C++ Core Guidelines

  • Two highly valuable resources 
  • Why do we need guidelines for modern C++?
  • The C++ Core Guidelines:
    1. The Philosophy
    2. Interfaces I
    3. Interfaces II
    4. Guideline Support Library
    5. Functions
      1. Definitions
      2. Parameters: Syntax
      3. Parameters: Semantic
    6. Classes
      1. General rules
      2. The Rule of Zero, Five, or Six
      3. Destructors
      4. Constructors
      5. Copy and Move
      6. Comparison, swap and hash
      7. Functionobjects and Lambdas
      8. Hierarchies
        1. General rules
        2. Special rules I
        3. Special rules II
        4. Accessing Objects
      9. Overloading
        1. Overloading and Overload Operators I
        2. Overloading and Overload Operators II
      10. Unions
    7. Enums
    8. Resources
      1. General Rules
      2. Allocation and Deallocation of Memory
      3. Smart Pointers
      4. Passing Smart Pointers
    9. Expressions and Statements
      1. Declarations 
      2. Declarations and Initialisations
      3. More Rules for Declarations
      4. Expressions
      5. Expressions (Pointers)
      6. Conversions and Casts
      7. Rules about Don'ts (std::move and slicing)
      8. Rules for Statements
      9. To Switch or not to Switch, that is the Question
      10. More about Control Structures
      11. Arithmetic Rules
    10. Performance
      1. Rules about Performance
      2. More Rules about Performance
      3. The Remaining Rules about Performance
    11. Concurrency and Parallelism
      1. Rules about Concurrency and Parallelism
      2. More Rules about Concurrency and Parallelism
      3. Tools to Validate Concurrent-Code
      4. Sharing Data between Threads
      5. Taking Care of your Child
      6. More Traps in the Concurrency
      7. Be Aware of the Traps of Condition Variables
      8. Concurrency and lock-free Programming
      9. The Resolution of the Riddle
      10. The Remaining Rules about lock-free Programming
    12. Error Handling
      1. Rules for Error Handling
      2. A Short Detour to Contracts in C++20
      3. The noexcept Specifier and Operator
      4. Rules about Exception Handling
      5. finally in C++
      6. goto considered Evil
    13. Constants and Immutability
    14. Templates and Generic Programming
      1. Rules for Templates and Generic Programming
      2. Type Erasure
      3. Type Erasure with Templates
      4. Better Specific or Generic?
      5. Usage of Concepts
      6. Definition of Concepts
      7. Definition of Concepts 2
      8. Pass Function Objects as Operations
      9. Template Interfaces
      10. Regular and SemiRegular Types
      11. Surprises with Argument-Dependent Lookup
      12. Template Definitions
      13. Ordering of User-Defined Types
      14. Templates and Hierarchies
      15. Rules for Variadic Templates
      16. Rules for Template Metaprogramming
      17. Programming at Compile Time
      18. Programming at Compile Time with the Type-Traits
      19. Programming at Compile Time with the Type-Traits (The Second)
      20. Programming at Compile Time with constexpr
      21. Other Template Rules
      22. Surprise Includes with Function Template Specialisation
      23. Templates: Misconceptions and Surprises
      24. Types, Non-Types, and Templates as Template Parameters
    15. C-Style Programming
      1. Mixing C with C++
    16. Source
      1. Source Files
      2. The Remaining Rules about Source Files
      3. Modules
      4. More Details to Modules
    17. The Standard Library
      1. The Standard Library
      2. std::array and std::vector are your Friends
      3. More special Friends with std::map and std::unordered_map
      4. Avoid Bounds Errors
      5. Rules for Strings
      6. IOStreams
      7. In- and Output with Streams
      8. Improved Performance with Iostreams
      9. The Regular Expression Library
      10. More Rules about the Regular Expression Library
      11. When RAII breaks
    18. Supporting Sections
      1. Architectural Ideas
      2. Non-Rules and Myths
        1. More Non-Rules and Myths
        2. Myths of My Blog Readers
        3. More Myths of My Blog Readers
      3. Profiles
        1. Type Safety
        2. Type Safety by Design
        3. Bounds Safety
        4. Lifetime Safety and Checking the Rules
      4. Naming and Layout Rules
  • Templates