Miscellaneous
C++11 follows the lead of C99 in allowing for implementation-dependent extended integer types. Such types, for example, could be used on a system with 128-bit integers. Extended types are supported in the C header file stdint.h and in the C++ version, cstdint.
C++11 provides a mechanism, the literal operator, for creating user-defined literals. Using this mechanism, for instance, one can define binary literals, such as 1001001b, which the corresponding literal operator will convert to an integer value.
C++ has a debugging tool called assert. It is a macro that checks during runtime if an assertion is true and which displays a message and calls abort() if the assertion is false. The assertion would typically be about something the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access