Init
This commit is contained in:
254
cppdraft/fmtflags/manip.md
Normal file
254
cppdraft/fmtflags/manip.md
Normal file
@@ -0,0 +1,254 @@
|
||||
[fmtflags.manip]
|
||||
|
||||
# 31 Input/output library [[input.output]](./#input.output)
|
||||
|
||||
## 31.5 Iostreams base classes [[iostreams.base]](iostreams.base#fmtflags.manip)
|
||||
|
||||
### 31.5.5 ios_base manipulators [[std.ios.manip]](std.ios.manip#fmtflags.manip)
|
||||
|
||||
#### 31.5.5.1 fmtflags manipulators [fmtflags.manip]
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2401)
|
||||
|
||||
Each function specified in this subclause
|
||||
is a designated addressable function ([[namespace.std]](namespace.std "16.4.5.2.1 Namespace std"))[.](#1.sentence-1)
|
||||
|
||||
[ð](#lib:boolalpha)
|
||||
|
||||
`ios_base& boolalpha(ios_base& str);
|
||||
`
|
||||
|
||||
[2](#2)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2411)
|
||||
|
||||
*Effects*: Callsstr.setf(ios_base::boolalpha)[.](#2.sentence-1)
|
||||
|
||||
[3](#3)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2416)
|
||||
|
||||
*Returns*: str[.](#3.sentence-1)
|
||||
|
||||
[ð](#lib:noboolalpha)
|
||||
|
||||
`ios_base& noboolalpha(ios_base& str);
|
||||
`
|
||||
|
||||
[4](#4)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2427)
|
||||
|
||||
*Effects*: Callsstr.unsetf(ios_base::boolalpha)[.](#4.sentence-1)
|
||||
|
||||
[5](#5)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2432)
|
||||
|
||||
*Returns*: str[.](#5.sentence-1)
|
||||
|
||||
[ð](#lib:showbase)
|
||||
|
||||
`ios_base& showbase(ios_base& str);
|
||||
`
|
||||
|
||||
[6](#6)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2443)
|
||||
|
||||
*Effects*: Callsstr.setf(ios_base::showbase)[.](#6.sentence-1)
|
||||
|
||||
[7](#7)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2448)
|
||||
|
||||
*Returns*: str[.](#7.sentence-1)
|
||||
|
||||
[ð](#lib:noshowbase)
|
||||
|
||||
`ios_base& noshowbase(ios_base& str);
|
||||
`
|
||||
|
||||
[8](#8)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2459)
|
||||
|
||||
*Effects*: Callsstr.unsetf(ios_base::showbase)[.](#8.sentence-1)
|
||||
|
||||
[9](#9)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2464)
|
||||
|
||||
*Returns*: str[.](#9.sentence-1)
|
||||
|
||||
[ð](#lib:showpoint)
|
||||
|
||||
`ios_base& showpoint(ios_base& str);
|
||||
`
|
||||
|
||||
[10](#10)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2475)
|
||||
|
||||
*Effects*: Callsstr.setf(ios_base::showpoint)[.](#10.sentence-1)
|
||||
|
||||
[11](#11)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2480)
|
||||
|
||||
*Returns*: str[.](#11.sentence-1)
|
||||
|
||||
[ð](#lib:noshowpoint)
|
||||
|
||||
`ios_base& noshowpoint(ios_base& str);
|
||||
`
|
||||
|
||||
[12](#12)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2491)
|
||||
|
||||
*Effects*: Callsstr.unsetf(ios_base::showpoint)[.](#12.sentence-1)
|
||||
|
||||
[13](#13)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2496)
|
||||
|
||||
*Returns*: str[.](#13.sentence-1)
|
||||
|
||||
[ð](#lib:showpos)
|
||||
|
||||
`ios_base& showpos(ios_base& str);
|
||||
`
|
||||
|
||||
[14](#14)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2507)
|
||||
|
||||
*Effects*: Callsstr.setf(ios_base::showpos)[.](#14.sentence-1)
|
||||
|
||||
[15](#15)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2512)
|
||||
|
||||
*Returns*: str[.](#15.sentence-1)
|
||||
|
||||
[ð](#lib:noshowpos)
|
||||
|
||||
`ios_base& noshowpos(ios_base& str);
|
||||
`
|
||||
|
||||
[16](#16)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2523)
|
||||
|
||||
*Effects*: Callsstr.unsetf(ios_base::showpos)[.](#16.sentence-1)
|
||||
|
||||
[17](#17)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2528)
|
||||
|
||||
*Returns*: str[.](#17.sentence-1)
|
||||
|
||||
[ð](#lib:skipws)
|
||||
|
||||
`ios_base& skipws(ios_base& str);
|
||||
`
|
||||
|
||||
[18](#18)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2539)
|
||||
|
||||
*Effects*: Callsstr.setf(ios_base::skipws)[.](#18.sentence-1)
|
||||
|
||||
[19](#19)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2544)
|
||||
|
||||
*Returns*: str[.](#19.sentence-1)
|
||||
|
||||
[ð](#lib:noskipws)
|
||||
|
||||
`ios_base& noskipws(ios_base& str);
|
||||
`
|
||||
|
||||
[20](#20)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2555)
|
||||
|
||||
*Effects*: Callsstr.unsetf(ios_base::skipws)[.](#20.sentence-1)
|
||||
|
||||
[21](#21)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2560)
|
||||
|
||||
*Returns*: str[.](#21.sentence-1)
|
||||
|
||||
[ð](#lib:uppercase)
|
||||
|
||||
`ios_base& uppercase(ios_base& str);
|
||||
`
|
||||
|
||||
[22](#22)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2571)
|
||||
|
||||
*Effects*: Callsstr.setf(ios_base::uppercase)[.](#22.sentence-1)
|
||||
|
||||
[23](#23)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2576)
|
||||
|
||||
*Returns*: str[.](#23.sentence-1)
|
||||
|
||||
[ð](#lib:nouppercase)
|
||||
|
||||
`ios_base& nouppercase(ios_base& str);
|
||||
`
|
||||
|
||||
[24](#24)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2587)
|
||||
|
||||
*Effects*: Callsstr.unsetf(ios_base::uppercase)[.](#24.sentence-1)
|
||||
|
||||
[25](#25)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2592)
|
||||
|
||||
*Returns*: str[.](#25.sentence-1)
|
||||
|
||||
[ð](#lib:unitbuf)
|
||||
|
||||
`ios_base& unitbuf(ios_base& str);
|
||||
`
|
||||
|
||||
[26](#26)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2603)
|
||||
|
||||
*Effects*: Callsstr.setf(ios_base::unitbuf)[.](#26.sentence-1)
|
||||
|
||||
[27](#27)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2608)
|
||||
|
||||
*Returns*: str[.](#27.sentence-1)
|
||||
|
||||
[ð](#lib:nounitbuf)
|
||||
|
||||
`ios_base& nounitbuf(ios_base& str);
|
||||
`
|
||||
|
||||
[28](#28)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2619)
|
||||
|
||||
*Effects*: Callsstr.unsetf(ios_base::unitbuf)[.](#28.sentence-1)
|
||||
|
||||
[29](#29)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L2624)
|
||||
|
||||
*Returns*: str[.](#29.sentence-1)
|
||||
141
cppdraft/fmtflags/state.md
Normal file
141
cppdraft/fmtflags/state.md
Normal file
@@ -0,0 +1,141 @@
|
||||
[fmtflags.state]
|
||||
|
||||
# 31 Input/output library [[input.output]](./#input.output)
|
||||
|
||||
## 31.5 Iostreams base classes [[iostreams.base]](iostreams.base#fmtflags.state)
|
||||
|
||||
### 31.5.2 Class ios_base [[ios.base]](ios.base#fmtflags.state)
|
||||
|
||||
#### 31.5.2.3 State functions [fmtflags.state]
|
||||
|
||||
[ð](#lib:flags,ios_base)
|
||||
|
||||
`fmtflags flags() const;
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1188)
|
||||
|
||||
*Returns*: The format control information for both input and output[.](#1.sentence-1)
|
||||
|
||||
[ð](#lib:flags,ios_base_)
|
||||
|
||||
`fmtflags flags(fmtflags fmtfl);
|
||||
`
|
||||
|
||||
[2](#2)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1199)
|
||||
|
||||
*Postconditions*: fmtfl == flags()[.](#2.sentence-1)
|
||||
|
||||
[3](#3)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1203)
|
||||
|
||||
*Returns*: The previous value offlags()[.](#3.sentence-1)
|
||||
|
||||
[ð](#lib:setf,ios_base)
|
||||
|
||||
`fmtflags setf(fmtflags fmtfl);
|
||||
`
|
||||
|
||||
[4](#4)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1215)
|
||||
|
||||
*Effects*: Sets fmtfl inflags()[.](#4.sentence-1)
|
||||
|
||||
[5](#5)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1220)
|
||||
|
||||
*Returns*: The previous value offlags()[.](#5.sentence-1)
|
||||
|
||||
[ð](#lib:setf,ios_base_)
|
||||
|
||||
`fmtflags setf(fmtflags fmtfl, fmtflags mask);
|
||||
`
|
||||
|
||||
[6](#6)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1232)
|
||||
|
||||
*Effects*: Clears mask inflags(),
|
||||
setsfmtfl & mask inflags()[.](#6.sentence-1)
|
||||
|
||||
[7](#7)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1241)
|
||||
|
||||
*Returns*: The previous value offlags()[.](#7.sentence-1)
|
||||
|
||||
[ð](#lib:unsetf,ios_base)
|
||||
|
||||
`void unsetf(fmtflags mask);
|
||||
`
|
||||
|
||||
[8](#8)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1253)
|
||||
|
||||
*Effects*: Clears mask inflags()[.](#8.sentence-1)
|
||||
|
||||
[ð](#lib:precision,ios_base)
|
||||
|
||||
`streamsize precision() const;
|
||||
`
|
||||
|
||||
[9](#9)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1265)
|
||||
|
||||
*Returns*: The precision
|
||||
to generate on certain output conversions[.](#9.sentence-1)
|
||||
|
||||
[ð](#lib:precision,ios_base_)
|
||||
|
||||
`streamsize precision(streamsize prec);
|
||||
`
|
||||
|
||||
[10](#10)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1277)
|
||||
|
||||
*Postconditions*: prec == precision()[.](#10.sentence-1)
|
||||
|
||||
[11](#11)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1281)
|
||||
|
||||
*Returns*: The previous value ofprecision()[.](#11.sentence-1)
|
||||
|
||||
[ð](#lib:width,ios_base)
|
||||
|
||||
`streamsize width() const;
|
||||
`
|
||||
|
||||
[12](#12)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1293)
|
||||
|
||||
*Returns*: The minimum field width (number of characters) to generate on certain output
|
||||
conversions[.](#12.sentence-1)
|
||||
|
||||
[ð](#lib:width,ios_base_)
|
||||
|
||||
`streamsize width(streamsize wide);
|
||||
`
|
||||
|
||||
[13](#13)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1305)
|
||||
|
||||
*Postconditions*: wide == width()[.](#13.sentence-1)
|
||||
|
||||
[14](#14)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1309)
|
||||
|
||||
*Returns*: The previous value ofwidth()[.](#14.sentence-1)
|
||||
Reference in New Issue
Block a user