std::boolalpha, std::noboolalpha
From cppreference.com
Template:cpp/io/manip/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<ios>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >std::ios_base& boolalpha( std::ios_base& str );
</td>
<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >std::ios_base& noboolalpha( std::ios_base& str );
</td>
<td > (2) </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
1) enables the boolalpha
flag in the stream str
as if by calling Template:cpp
2) disables the boolalpha
flag in the stream str
as if by calling Template:cpp
This is an I/O manipulator, it may be called with an expression such as Template:cpp for any out
of type Template:cpp or with an expression such as Template:cpp for any in
of type Template:cpp.
Contents |
Parameters
str | - | reference to I/O stream |
Return value
str
(reference to the stream after manipulation)