Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

noboolalpha

 

Specifies that variables of type bool appear as 1 or 0 in the stream.


      ios
      _
      base& noboolalpha(
   ios_base& _Str
);

_Str

A reference to an object of type ios_base, or to a type that inherits from ios_base.

A reference to the object from which _Str is derived.

By default, noboolalpha is in effect.

noboolalpha effectively calls _Str.unsetf(ios_base::boolalpha), and then returns _Str.

boolalpha reverses the effect of noboolalpha.

Example

See boolalpha for an example of using noboolalpha.

Requirements

Header: <ios>

Namespace: std

Show: