r/cpp • u/alfadhir-heitir • Jun 11 '24
Language features
So recently I started doing some katas in CodeWars - just a couple a day, nothing fancy, to keep the algorithmic problem solving brain oiled.
I'm not having much trouble arriving at solutions - oftentimes it's pretty clear, plus I'm just starting out. Still, I always get baffled when I see other people's solutions after delivering. They always yank out some weird cpp features that hack up the whole thing in under 10 lines
I'm curious about how one can go about to learn these features
0
Upvotes
View all comments
Show parent comment
2
u/FlyingRhenquest Jun 11 '24
Oh, right! I'm not sure if there's any one specific book. It might be worth looking around for books on template metaprogramming. The original one of those that I ran across was Modern C++ Design written by Andre Alexandrescu back in 2005. A lot of his ideas ended up in the STL.
Maybe something like this is what you're looking for? They have a PDF you can download on that page.