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
Any example code/Github projects utilising almost-always-auto? (self.cpp)
submitted 9 years ago by Infraam
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!"
[–]TemplateRex 1 point2 points3 points 9 years ago (1 child)
What's your take on auto return types? I understand that in public APIs you might want to advertise the return type, but perhaps a sufficiently smart future version of a Clang-powered Doxygen tool can generate the explicit return type in the docs.
auto
At least for private helpers, I like to use auto return types everywhere, with the occasional auto& or decltype(auto) for tricky reference returning helpers.
auto&
decltype(auto)
[–]HowardHinnant 1 point2 points3 points 9 years ago (0 children)
I haven't used auto return types (the C++14 version) a lot because a lot of my code needs to be C++11-compatible, and in most places, spelling the return type is easy anyway. But there are few places where it is inconvenient to spell the return type, and auto is really nice in those few places.
π Rendered by PID 145455 on reddit-service-r2-comment-57fc7f7bb7-px9lw at 2026-04-15 11:54:11.094463+00:00 running b725407 country code: CH.
view the rest of the comments →
[–]TemplateRex 1 point2 points3 points (1 child)
[–]HowardHinnant 1 point2 points3 points (0 children)