Don't automatically use auto parameters in C++
Since the advent of C++14, we can create lambda expressions that take auto parameters. And in C++20, we can even do the same thing for regular functions. With this feature's advent, the programming…
Since the advent of C++14, we can create lambda expressions that take auto parameters. And in C++20, we can even do the same thing for regular functions. With this feature's advent, the programming…
I am doing some peer programming for a university course project today. In our codebase, we have a Ship class like the following: Later, the new requirement of the course project requires us to add…
Yesterday, someone in the #include<C++> discord server asked the following question: how std::function works with lambda captures and functions handling I still don't understand Below was my…
I already received some great feedback for this post, and any further feedbacks, error-correction, and resource recommendation are welcome. One way to contact me is to direct message me ( @Lesleylai…
I read almost nothing for a few months after the lockdown, but I started to pick up reading more for the last couple of months. "C++ Best Practices" by Jason Turner — Buying Jason's book is a no…