Summary of the last San Diego C++ Meetup – held on April 11 2023. This was our 49th meeting since inception on March 12 2019.
Sorry again for the delay posting this summary. I had some technical issues uploading the recording last week and finally found some time to write the summary.
Recording can be found here:
Discussion points:
C++Quiz.
Three fun C++Quiz questions. One related to UB when writing to const, another one related to copies made when using range for loop with auto and the last one was related to references and alias.
Walletfox slide – C++ Functional programming
I really love Walletfox (Ruzena Gurkaynak) work. The website has FP slides, Ranges-v3 booklet that can be purchased online (ebook + printed) which is highly recommended!
We discussed one slide related to Curring and “Partial” (like bind1st and similar but modern style).
Why I cannot emplace_back
This came up during code review. I was demonstrating the differences between vector::emplace_back of a simple struct vs unique_ptr<> “hosting” this struct. More info in the recording.
Using std::tie in C++
I love C++17 [structured, binding] but when I have no choice or when it falls short, I use std::tie. Also std::tie has other few applications that makes it easy to write code. I demonstrated few.
PImpl pattern
The final course was PImpl pattern. One of my favorite and a very useful pattern. We went through the definitions in cppreference, and mostly went over Herb’s GOTW #100/101.
That’s it for April meeting summary.
Thank you!
Kobi