Name
showbase function — Manipulator to show output radix
Synopsis
ios_base& showbase(ios_base& stream)
The showbase
function is a
manipulator that sets the showbase
flag, which tells an output
stream to write a prefix for integer output: 0x
for hexadecimal or 0
for octal. Specifically, the function
calls stream.setf(ios_base::showbase)
and
returns stream
.
See Also
hex function, ios_base::fmtflags type, oct function, noshowbase function, nouppercase function, uppercase function, num_put
in <locale>
Get C++ In a Nutshell 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.