Language
C++
Compiler
clang 15.0.7
Options
Warnings
Boost 1.80.0
C++2b(GNU)
no pedantic
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.80.0-clang-15.0.7/include -std=gnu++2b
****************************
ios::manipulators for istream
****************************
boolalpha example
true is:false
false is:false
noboolalpha example
true is:0
false is:0
oct hex example
077774 oct is decimal 32764
0xd031f2b0 hex is decimal -802032976
skipws example
Parsing "hello world!" yields "hello" "world!"
noskipws example
Parsing "hello world!" yields "hello" ""
ws example
"one
two"
getline Without ws yields a:one b:
getline With ws yields a:one b:two
get_currency example
"$1,234.56 2.22 USD 3.33"
parsed as:
123456, 222, 333
get_time example
Parsing 2018-September-21 11:58:00 in US locale yields
Sun Sep 21 11:58:00 2018
Exit Code:
0