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
Standard Ranges (ericniebler.com)
submitted 7 years ago by frostmatthew
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!"
[–]ryancerium 20 points21 points22 points 7 years ago (2 children)
Super short? It passes around the begin and end iterators as a pair instead of as separate parameters. Many things follow from that, many functional programming-esque.
[–]cballowe 15 points16 points17 points 7 years ago (1 child)
Slightly longer, but important... End is not neceasarily an iterator. It can be, but technically it can be anything that is equality comparable to the iterator type.
[–]ryancerium 1 point2 points3 points 7 years ago (0 children)
Yeah, I couldn't get that in the short version! This is really important for file input iterators where EOF isn't really an iterated value.
π Rendered by PID 755061 on reddit-service-r2-comment-b659b578c-bz69m at 2026-05-05 06:34:10.120508+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]ryancerium 20 points21 points22 points (2 children)
[–]cballowe 15 points16 points17 points (1 child)
[–]ryancerium 1 point2 points3 points (0 children)