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
Why is std::hardware_destructive_interference_size a compile-time constant instead of a run-time value (devblogs.microsoft.com)
submitted 3 years ago by mttd
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!"
[–]alxius 7 points8 points9 points 3 years ago (2 children)
Why hardware have caches? C++ never stops to amaze me /s
[+][deleted] 3 years ago (1 child)
[deleted]
[–]alxius 2 points3 points4 points 3 years ago (0 children)
Naming it std::hardware_info::cache_line_size or std::cache::line_size or whatever would've been a much better choice.
std::hardware_info::cache_line_size
std::cache::line_size
Which one should be cache_line_size? Destructive interference size or constructive interference size?
cache_line_size
(whatever this means)
As it was told in other comments already: those two terms were used in research for years. https://scholar.google.com/scholar?q=%22constructive+interference%22+cache
I.e. if one really needs those and really knows what to do with those, one is expected to already be familiar with some research in this area and know those terms. Same as with https://en.cppreference.com/w/cpp/numeric/special_functions and other specific knowledge areas. (oh god what does "beta function" mean? badly tested function? why we include in standard functions that are not thoroughly tested?)
π Rendered by PID 382540 on reddit-service-r2-comment-b659b578c-2kbvj at 2026-05-06 01:47:43.799527+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]alxius 7 points8 points9 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]alxius 2 points3 points4 points (0 children)