The boolalpha() method of stream manipulators in C++ is used to set the boolalpha format flag for the specified str stream.
ios_base& boolalpha (ios_base& str)
Parameters: This method accepts str as a a parameter which is the stream for which the format flag is affected.
Return Value: This method returns the stream str with boolalpha format flag set.
boolalpha flag: true
boolalpha flag: false
Rated as one of the most sought after skills in the industry, own the basics of coding with our C++ STL Course and master the very concepts by intense problem-solving.