Tag
This article explains C++20's std::counting_semaphore and std::binary_semaphore, covering their API, usage for limiting concurrency and signaling between threads, and important details.
C++20 introduces a new syntax for range-based for loops that allows declaring an initializer in the loop scope, matching the convenience of languages like Python and Lua.
A detailed overview of all C++20 core language features with examples, serving as a cheat sheet.