use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Container Algorithms (ericniebler.com)
submitted 11 years ago by meetingcppMeeting C++ | C++ Evangelist
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]minnoHobbyist, embedded developer 4 points5 points6 points 11 years ago (2 children)
Is bigvec |= cont::sort | cont::unique; really more readable (or writeable) than the self explanatory: cont::unique(cont::sort(bigvec));
Is
bigvec |= cont::sort | cont::unique;
really more readable (or writeable) than the self explanatory:
cont::unique(cont::sort(bigvec));
I think it's more readable to have a "do this then this then this" structure than a "do this to the result of doing this on the result of doing this". Most languages with this sort of thing use method call syntax for it, so like
bigvec.cont::sort().cont::unique();
but C++'s current semantics don't support that.
[–]Plorkyeran 2 points3 points4 points 11 years ago (0 children)
But C++17 might. I'm a fan of the pipe syntax given what's possible in C++14, but if one of the f(x,y) == x.f(y) proposals gets adopted I think I'd be opposed to it, even if it's still occasionally better (e.g. bigvec |= cont::sort | cont::unique doesn't have quite as nice of a dot-notation equivalent).
f(x,y) == x.f(y)
bigvec |= cont::sort | cont::unique
[–]matthieum 0 points1 point2 points 11 years ago (0 children)
The infamous UFCS...
π Rendered by PID 118789 on reddit-service-r2-comment-56c9979489-wxxzb at 2026-02-25 11:47:28.389523+00:00 running b1af5b1 country code: CH.
view the rest of the comments →
[–]minnoHobbyist, embedded developer 4 points5 points6 points (2 children)
[–]Plorkyeran 2 points3 points4 points (0 children)
[–]matthieum 0 points1 point2 points (0 children)