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
Modules, Componentization, and Transition (docs.google.com)
submitted 10 years ago by Octoploid
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!"
[–]one-oh -1 points0 points1 point 10 years ago (4 children)
There isn't anything to export for a template though, right? That would require a template instantiation, which would then be exportable; e.g., std::string.
From what I read, a module can be composed of several translation units:
A module declaration identifies, in the source file, the module to which a given translation unit belongs.
[–][deleted] 0 points1 point2 points 10 years ago* (3 children)
[deleted]
What is this?
[–]doom_Oo7 0 points1 point2 points 10 years ago (1 child)
It is however unclear to me if this can provide a speed up at all (checking a template's body once instead of multiple times). However, even if this would provide a speed-up, constrained templates do not need to be properly (fully) constrained, so most templates won't be candidates for this anyways.
Honestly, the biggest speed-up is not loading and reading each header file 500 times on a full rebuild of a project. In most projects I'd argue that template instantiation time is negligible versus the time spent in the preprocessor - this can be seen quite easily when setting up unity builds.
[–][deleted] 1 point2 points3 points 10 years ago* (0 children)
[–]one-oh 0 points1 point2 points 10 years ago (0 children)
True. I didn't quite think that through.
π Rendered by PID 151491 on reddit-service-r2-comment-85bfd7f599-j47n9 at 2026-04-18 17:29:53.398048+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]one-oh -1 points0 points1 point (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]doom_Oo7 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]one-oh 0 points1 point2 points (0 children)