All Resources

Showing the most recent resources. The latest one is from 2021-02-28.
  • Instead of return, a coroutine uses co_return returning its result. In this post, I want to implement a simple coroutine using co_return.
    Article  Added by gansm // www.modernescpp.com // about 15 hours ago
  • The C++ header file describes the characteristics of floating types. It contains platform-dependent and implementation-specific floating point values.
    Tutorial  Added by AlphaCodingSkills // www.alphacodingskills.com // 5 days ago
  • What happens when you write without synchronization to std::cout? You get a mess. With C++20, this should not be anymore.
    Update  Added by gansm // www.modernescpp.com // 8 days ago
  • What happens when you write without synchronization to std::cout? You get a mess. With C++20, this should not be anymore.
    Article  Added by gansm // www.modernescpp.com // 8 days ago
  • std::jthread stands for joining thread. In addition to std::thread (C++11), std::jthread automatically joins in its destructor and can cooperatively be interrupted. Read in this post to know why std::jthread should be your first choice.
    Article  Added by gansm // www.modernescpp.com // 15 days ago
  • A typical question in my C++ seminars is: Can A thread be killed?. Before C++20, my answer is no. With C++20, you can ask a thread politely for its interruption.
    Article  Added by gansm // www.modernescpp.com // 22 days ago
  • In my last post, I introduced latches in C++20. A latch enables it threads to wait until a counter becomes zero. Additionally to a latch, its big sibling barrier can be used more than once. Today, I write about barriers and present atomic smart pointers.
    Article  Added by gansm // www.modernescpp.com // 29 days ago
  • Latches and barriers are coordination types that enable some threads to wait until a counter becomes zero. You can use a std::latch only once, but you can use a std::barrier more than once. Today, I have a closer look at latches.
    Article  Added by gansm // www.modernescpp.com // about 1 month ago
  • This article shares a bunch of beginner-friendly C++ resources that are known to be of high quality. And hopefully, this list of resources can help learners who are new to C++.
    Article  Added by LesleyLai // lesleylai.info // about 1 month ago
  • Textrude is an cross-platform OSS code-generation tool that's perfectly suited to automating the generation of header and source files from CSV, JSON or YAML input files. Direct github link https://github.com/NeilMacMullen/Textrude
    Tool  Added by NeilMacMullen // neil-macmullen.medium.com // about 1 month ago
  • Semaphores are a synchronization mechanism used to control concurrent access to a shared resource. They also allow it to play ping-pong.
    Article  Added by gansm // www.modernescpp.com // about 1 month ago
  • After the introduction to std::atomic_flag in my last post Synchronization with Atomics in C++20, I want to dive deeper. Today, I create a ping-pong game using condition variables, std::atomic_flag, and std::atomic. Let's play.
    Article  Added by gansm // www.modernescpp.com // about 2 months ago
  • Surprising behavior of zero in C++.
    Article  Added by shafik // shafik.github.io // about 2 months ago
  • What is maximal munch and how does it work.
    Article  Added by shafik // shafik.github.io // 2 months ago
  • Sender/receiver workflows are quite common for threads. In such a workflow, the receiver is waiting for the sender's notification before it continues to work. There are various ways to implement these workflows. With C++11, you can use condition variables or promise/future pairs; with C++20, you can use atomics.
    Article  Added by gansm // www.modernescpp.com // 2 months ago
  • Discussion on [[nodicard]] in the library for C++20, diagnostics and QoI.
    Article  Added by shafik // shafik.github.io // 3 months ago
  • Atomics receives a few important extensions in C++20. Today, I start with the new data type std::atomic_ref.
    Article  Added by gansm // www.modernescpp.com // 3 months ago
  • This post concludes my presentation of library features in C++20. Today I write about the class std::source_location and a few functions for bit manipulation.
    Article  Added by gansm // www.modernescpp.com // 3 months ago
  • When your program's compilation broke with a brand-new C++20 feature, you often end with a few questions: Did I something wrong? Did I found a compiler bug? Does my compiler not yet support this feature? Thanks to the feature testing in C++20, the last question is easy to answer.
    Article  Added by gansm // www.modernescpp.com // 3 months ago
  • When you compare signed and unsigned integers, you may not get the result you expect. Thanks to the six std::cmp_* functions, there is a cure in C++20.
    Article  Added by gansm // www.modernescpp.com // 3 months ago
  • A list of free Udemy and Couresra courses to learn C++ online
    Article  Added by mrohit829 // www.java67.com // 4 months ago
  • TL;DR
    To provide the chance to handle the request by more than one object/component.
    Article  Added by VisheshPatel // www.vishalchovatiya.com // 5 months ago
  • Article  Added by VisheshPatel // www.vishalchovatiya.com // 5 months ago
  • CppCon 2020 Trip Report from https://twitter.com/shafikyaghmour
    Article  Added by shafik // shafik.github.io // 5 months ago
  • Learning a programming language is common but very few know where the language is used. What is its application? College or School only teaches us…
    Article  Added by htd // hackthedeveloper.com // 5 months ago
  • Article  Added by VisheshPatel // www.vishalchovatiya.com // 5 months ago
  • If you want to learn C++ and looking for the best and free online courses then you can check this article, it contains some of the best and free online courses to learn C++ programming from scratch.
    Article  Added by javabuddy // medium.com // 5 months ago
  • Guidelines for efficiently and safely processing immutable text in C++ using std::string_view. Presents a total of 21 guidelines grouped into five categories such as using std::string_view as an alternative to std::string and using std::string_view as a wrapper to character arrays.
    Article  Added by smurthys // sigcpp.github.io // 6 months ago
  • Article  Added by VisheshPatel // www.vishalchovatiya.com // 6 months ago
  • To treat individual & group of objects in a uniform manner.
    Article  Added by VisheshPatel // www.vishalchovatiya.com // 6 months ago