Namespaces
Variants
Views
Actions

std::boolalpha, std::noboolalpha

From cppreference.com
< cpp‎ | io‎ | manip
Revision as of 17:58, 28 December 2011 by Cubbi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/io/manip/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <ios>
</td>

<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)

Example

Template:example cpp

See also

Template:cpp/io/manip/dcl list resetiosflagsTemplate:cpp/io/manip/dcl list setiosflagsTemplate:cpp/locale/numpunct/dcl list do truenameTemplate:cpp/locale/numpunct/dcl list do falsename