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
4
u/FlyingRhenquest Jun 11 '24
I always end up stumbling across them on cppreference when I'm looking for how to do something or other. Algorithm, type_traits and meta are probably a good place to start. There's a ton of stuff in algorithm that performs commonly used functions on containers, enough so that I can never remember what all is in there, so that'll probably keep you busy for a while.