In this post, I will go through the implementation of thread class similar to std::thread in c++11.
Do you remember the union construct in C language? As of C++11, you can use any object as part of the Union construct, but it’s not type-safe. In c++17 std::variant is added as a type-safe implementation of a union-like construct.
Have you ever wished you could return more than one item from a function?
std::tuple is the answer!
I’m sure there are plenty of good references out there for learning the C++ compilation and build process on Linux.
but i will say it again! and I hope it will be helpful.