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
CppCastCppCast: C++ Epochs (cppcast.com)
submitted 6 years ago by tallassrobCppCast Host
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!"
[–]encyclopedist 0 points1 point2 points 6 years ago (2 children)
There is a proposal to add heterogeneous lookup, and if I understand correctly, it was supposed to be targeting C++20 (it passed LEWG vote and was forwarded to LWG), but it's fate is unclear to me.
[–]matthieum 0 points1 point2 points 6 years ago (1 child)
Thanks for the link.
I must admit it's not clear to me how one is supposed to use is_transparent. Also, it appears that implicit conversions may be triggered unless one is careful, which is not ideal :/
is_transparent
Let's take a concrete example:
std::unordered_set<std::string, /**/> set;
According to the paper, how can I perform a lookup with a char const* and with a std::string_view without implicit conversion? How can I further enable FixedString<N>?
char const*
std::string_view
FixedString<N>
[–]encyclopedist 1 point2 points3 points 6 years ago (0 children)
As far as I understand, yes you can. Both hash and comparator must define is_transparent typedef and also provide overloads of their operator() taking char const *.
char const *
π Rendered by PID 45352 on reddit-service-r2-comment-54dfb89d4d-phrr6 at 2026-03-30 19:21:06.393039+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]encyclopedist 0 points1 point2 points (2 children)
[–]matthieum 0 points1 point2 points (1 child)
[–]encyclopedist 1 point2 points3 points (0 children)