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 ...
Get C++ Primer Plus now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.