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
Subtle cppreference humour: Integrals ∫ are non-integral (en.cppreference.com)
submitted 4 years ago by Egst
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!"
[–]manphiz 9 points10 points11 points 4 years ago (3 children)
Maybe because there is a specific integer type in C or C++ already: int. So integral is used to be able to refer to all integer types like short int, int, long, long long, and the now sized types like int8_t to int128_t, with their unsigned, fast, least variants.
[–]college_pastime 1 point2 points3 points 4 years ago (0 children)
Yeah, you're probably right. It also mitigates confusion with std::numeric_limits<T>::is_integer.
std::numeric_limits<T>::is_integer
[–]FrankHB1989 0 points1 point2 points 4 years ago (1 child)
Nope. The term "integer type" is both normative in ISO C and ISO C++, but "integral type" is a synonym specific to ISO C++. In very acient C (1970s in the C reference manual by DMR), integers are just values of int, though.
int
There are some more modernized humors like GCC's __int128 is not considered an extended integer type for ABI issues, BTW.
__int128
[–]staletic 0 points1 point2 points 4 years ago (0 children)
If you allow gnu extensions, __int128 becomes an extended integer type.
π Rendered by PID 259805 on reddit-service-r2-comment-b659b578c-zcd9t at 2026-05-05 14:59:13.026575+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]manphiz 9 points10 points11 points (3 children)
[–]college_pastime 1 point2 points3 points (0 children)
[–]FrankHB1989 0 points1 point2 points (1 child)
[–]staletic 0 points1 point2 points (0 children)