May the lord have mercy on you if you try to look up the syntax of a function after the recent C++ standards came to life. Like what even is this?
Every time I look for the syntax of a function/method/type etc. I just give up. (I can't remember every overload of every thing) There's so much text crammed on my screen that I can't understand a thing.
I definitely like the idea of using tabs for different C++ versions like cplusplus.com does it.
If you login, you can filter by the standard:
https://youtu.be/eSDVVrjFh54?t=1030
I'll approve this post since it's relevant to the C++ community. It's borderline since ideally you'd go to a dedicated forum for this, but (AFAIK) there is no subreddit or Discord (only editing their discussion pages).
Videos
Hey everyone,
I’ve been trying to deepen my understanding of C++ by using cppreference alongside C++ Primer book. While C++ Primer is great for structured learning, I find cppreference a bit overwhelming. It feels more like an encyclopedia than a guided resource, and jumping between arbitrary topics isn’t helping me build a solid foundation.
For those of you who use cppreference regularly, what would you recommend as a good entry point or strategy for a beginner? Should I start with a specific page or section? Or is there a way to navigate it that aligns better with learning the language step-by-step?
Any advice or tips would be greatly appreciated!
Thanks in advance.
This is not my post, but I didn't see anyone share this here yet.
Hi all,
I was wondering which is the goto website for you when you want to see the reference for C++?
I've heard that cplusplus.com have had errors and wrong information, but I haven't heard the same about cppreference.com.
So should i trust cplusplus.com's info or should i just stick with cppreference.com?
Thanks!
You are not joining the threads in main(). You need
for(auto& t : v) t.join();
// ^ Look, v not l
Alternatively, place this line before your original loop to move the threads from the v into l:
std::move(v.begin(), v.end(), std::back_inserter(l));
for(auto& t : l) t.join();
you try iterate over empty l, but 'join is not accomplished for real threads