CppStd:depr.ostrstream.cons

From emmtrix Wiki
Jump to navigation Jump to search
[edit]

Source: https://timsong-cpp.github.io/cppwp/n3337/depr.ostrstream.cons

List of Tables [tab]
List of Figures [fig]
1 General [intro]
2 Lexical conventions [lex]
3 Basic concepts [basic]
4 Standard conversions [conv]
5 Expressions [expr]
6 Statements [stmt.stmt]
7 Declarations [dcl.dcl]
8 Declarators [dcl.decl]
9 Classes [class]
10 Derived classes [class.derived]
11 Member access control [class.access]
12 Special member functions [special]
13 Overloading [over]
14 Templates [temp]
15 Exception handling [except]
16 Preprocessing directives [cpp]
17 Library introduction [library]
18 Language support library [language.support]
19 Diagnostics library [diagnostics]
20 General utilities library [utilities]
21 Strings library [strings]
22 Localization library [localization]
23 Containers library [containers]
24 Iterators library [iterators]
25 Algorithms library [algorithms]
26 Numerics library [numerics]
27 Input/output library [input.output]
28 Regular expressions library [re]
29 Atomic operations library [atomics]
30 Thread support library [thread]
Annex A (informative) Grammar summary [gram]
Annex B (informative) Implementation quantities [implimits]
Annex C (informative) Compatibility [diff]
Annex D (normative) Compatibility features [depr]
D.1 Increment operator with bool operand [depr.incr.bool]
D.2 register keyword [depr.register]
D.3 Implicit declaration of copy functions [depr.impldec]
D.4 Dynamic exception specifications [depr.except.spec]
D.5 C standard library headers [depr.c.headers]
D.6 Old iostreams members [depr.ios.members]
D.7 char* streams [depr.str.strstreams]
D.7.1 Class strstreambuf [depr.strstreambuf]
D.7.2 Class istrstream [depr.istrstream]
D.7.3 Class ostrstream [depr.ostrstream]
D.7.3.1 ostrstream constructors [depr.ostrstream.cons]
D.7.3.2 Member functions [depr.ostrstream.members]

Annex D (normative) Compatibility features [depr]

D.7 char* streams [depr.str.strstreams]

D.7.3 Class ostrstream [depr.ostrstream]

D.7.3.1 ostrstream constructors [depr.ostrstream.cons]
ostrstream();
1 Effects: Constructs an object of class ostrstream, initializing the base class with ostream(&sb) and initializing sb with strstreambuf()).

ostrstream(char* s, int n, ios_base::openmode mode = ios_base::out);

2 Effects: Constructs an object of class ostrstream, initializing the base class with ostream(&sb), and initializing sb with one of two constructors:
(2.1)
  • If (mode & app) == 0, then s shall designate the first element of an array of n elements.

    The constructor is strstreambuf(s, n, s).

(2.2)
  • If (mode & app) != 0, then s shall designate the first element of an array of n elements that contains an ntbs whose first element is designated by s. The constructor is strstreambuf(s, n, s + std::strlen(s)).[cpp11 1]

    The function signature strlen(const char*) is declared in <cstring> ([c.strings]).


  1. Cite error: Invalid <ref> tag; no text was provided for refs named footnote-340


[edit]

Source: https://timsong-cpp.github.io/cppwp/n4140/depr.ostrstream.cons

List of Tables [tab]
List of Figures [fig]
1 General [intro]
2 Lexical conventions [lex]
3 Basic concepts [basic]
4 Standard conversions [conv]
5 Expressions [expr]
6 Statements [stmt.stmt]
7 Declarations [dcl.dcl]
8 Declarators [dcl.decl]
9 Classes [class]
10 Derived classes [class.derived]
11 Member access control [class.access]
12 Special member functions [special]
13 Overloading [over]
14 Templates [temp]
15 Exception handling [except]
16 Preprocessing directives [cpp]
17 Library introduction [library]
18 Language support library [language.support]
19 Diagnostics library [diagnostics]
20 General utilities library [utilities]
21 Strings library [strings]
22 Localization library [localization]
23 Containers library [containers]
24 Iterators library [iterators]
25 Algorithms library [algorithms]
26 Numerics library [numerics]
27 Input/output library [input.output]
28 Regular expressions library [re]
29 Atomic operations library [atomics]
30 Thread support library [thread]
Annex A (informative) Grammar summary [gram]
Annex B (informative) Implementation quantities [implimits]
Annex C (informative) Compatibility [diff]
Annex D (normative) Compatibility features [depr]
D.1 Increment operator with bool operand [depr.incr.bool]
D.2 register keyword [depr.register]
D.3 Implicit declaration of copy functions [depr.impldec]
D.4 Dynamic exception specifications [depr.except.spec]
D.5 C standard library headers [depr.c.headers]
D.6 Old iostreams members [depr.ios.members]
D.7 char* streams [depr.str.strstreams]
D.7.1 Class strstreambuf [depr.strstreambuf]
D.7.2 Class istrstream [depr.istrstream]
D.7.3 Class ostrstream [depr.ostrstream]
D.7.3.1 ostrstream constructors [depr.ostrstream.cons]
D.7.3.2 Member functions [depr.ostrstream.members]

Annex D (normative) Compatibility features [depr]

D.7 char* streams [depr.str.strstreams]

D.7.3 Class ostrstream [depr.ostrstream]

D.7.3.1 ostrstream constructors [depr.ostrstream.cons]
ostrstream();
1 Effects: Constructs an object of class ostrstream, initializing the base class with ostream(&sb) and initializing sb with strstreambuf()).

ostrstream(char* s, int n, ios_base::openmode mode = ios_base::out);

2 Effects: Constructs an object of class ostrstream, initializing the base class with ostream(&sb), and initializing sb with one of two constructors:
(2.1)
  • If (mode & app) == 0, then s shall designate the first element of an array of n elements.

    The constructor is strstreambuf(s, n, s).

(2.2)
  • If (mode & app) != 0, then s shall designate the first element of an array of n elements that contains an ntbs whose first element is designated by s. The constructor is strstreambuf(s, n, s + std::strlen(s)).[cpp14 1]

    The function signature strlen(const char*) is declared in <cstring> ([c.strings]).


  1. Cite error: Invalid <ref> tag; no text was provided for refs named footnote-340


[edit]

Source: https://timsong-cpp.github.io/cppwp/n4659/depr.ostrstream.cons

List of Tables [tab]
List of Figures [fig]
1 Scope [intro.scope]
2 Normative references [intro.refs]
3 Terms and definitions [intro.defs]
4 General principles [intro]
5 Lexical conventions [lex]
6 Basic concepts [basic]
7 Standard conversions [conv]
8 Expressions [expr]
9 Statements [stmt.stmt]
10 Declarations [dcl.dcl]
11 Declarators [dcl.decl]
12 Classes [class]
13 Derived classes [class.derived]
14 Member access control [class.access]
15 Special member functions [special]
16 Overloading [over]
17 Templates [temp]
18 Exception handling [except]
19 Preprocessing directives [cpp]
20 Library introduction [library]
21 Language support library [language.support]
22 Diagnostics library [diagnostics]
23 General utilities library [utilities]
24 Strings library [strings]
25 Localization library [localization]
26 Containers library [containers]
27 Iterators library [iterators]
28 Algorithms library [algorithms]
29 Numerics library [numerics]
30 Input/output library [input.output]
31 Regular expressions library [re]
32 Atomic operations library [atomics]
33 Thread support library [thread]
Annex A (informative) Grammar summary [gram]
Annex B (informative) Implementation quantities [implimits]
Annex C (informative) Compatibility [diff]
Annex D (normative) Compatibility features [depr]
D.1 Redeclaration of static constexpr data members [depr.static_constexpr]
D.2 Implicit declaration of copy functions [depr.impldec]
D.3 Deprecated exception specifications [depr.except.spec]
D.4 C++standard library headers [depr.cpp.headers]
D.5 C standard library headers [depr.c.headers]
D.6 char* streams [depr.str.strstreams]
D.6.1 Class strstreambuf [depr.strstreambuf]
D.6.2 Class istrstream [depr.istrstream]
D.6.3 Class ostrstream [depr.ostrstream]
D.6.3.1 ostrstream constructors [depr.ostrstream.cons]
D.6.3.2 Member functions [depr.ostrstream.members]

Annex D (normative) Compatibility features [depr]

D.6 char* streams [depr.str.strstreams]

D.6.3 Class ostrstream [depr.ostrstream]

D.6.3.1 ostrstream constructors [depr.ostrstream.cons]
ostrstream();
1 Effects: Constructs an object of class ostrstream, initializing the base class with ostream(&sb) and initializing sb with strstreambuf().

ostrstream(char* s, int n, ios_base::openmode mode = ios_base::out);

2 Effects: Constructs an object of class ostrstream, initializing the base class with ostream(&sb), and initializing sb with one of two constructors:
(2.1)
  • If (mode & app) == 0, then s shall designate the first element of an array of n elements.

    The constructor is strstreambuf(s, n, s).

(2.2)
  • If (mode & app) != 0, then s shall designate the first element of an array of n elements that contains an ntbs whose first element is designated by s. The constructor is strstreambuf(s, n, s + std​::​strlen(s)).[cpp17 1]


  1. The function signature strlen(const char*) is declared in <cstring>.


[edit]

Source: https://timsong-cpp.github.io/cppwp/n4868/depr.ostrstream.cons

1 Scope [intro.scope]
2 Normative references [intro.refs]
3 Terms and definitions [intro.defs]
4 General principles [intro]
5 Lexical conventions [lex]
6 Basics [basic]
7 Expressions [expr]
8 Statements [stmt.stmt]
9 Declarations [dcl.dcl]
10 Modules [module]
11 Classes [class]
12 Overloading [over]
13 Templates [temp]
14 Exception handling [except]
15 Preprocessing directives [cpp]
16 Library introduction [library]
17 Language support library [support]
18 Concepts library [concepts]
19 Diagnostics library [diagnostics]
20 General utilities library [utilities]
21 Strings library [strings]
22 Containers library [containers]
23 Iterators library [iterators]
24 Ranges library [ranges]
25 Algorithms library [algorithms]
26 Numerics library [numerics]
27 Time library [time]
28 Localization library [localization]
29 Input/output library [input.output]
30 Regular expressions library [re]
31 Atomic operations library [atomics]
32 Thread support library [thread]
Annex A (informative) Grammar summary [gram]
Annex B (normative) Implementation quantities [implimits]
Annex C (informative) Compatibility [diff]
Annex D (normative) Compatibility features [depr]
D.1 General [depr.general]
D.2 Arithmetic conversion on enumerations [depr.arith.conv.enum]
D.3 Implicit capture of *this by reference [depr.capture.this]
D.4 Comma operator in subscript expressions [depr.comma.subscript]
D.5 Array comparisons [depr.array.comp]
D.6 Deprecated volatile types [depr.volatile.type]
D.7 Redeclaration of static constexpr data members [depr.static.constexpr]
D.8 Non-local use of TU-local entities [depr.local]
D.9 Implicit declaration of copy functions [depr.impldec]
D.10 C headers [depr.c.headers]
D.11 Requires paragraph [depr.res.on.required]
D.12 Relational operators [depr.relops]
D.13 char* streams [depr.str.strstreams]
D.13.1 Header <strstream> synopsis [depr.strstream.syn]
D.13.2 Class strstreambuf [depr.strstreambuf]
D.13.3 Class istrstream [depr.istrstream]
D.13.4 Class ostrstream [depr.ostrstream]
D.13.4.1 General [depr.ostrstream.general]
D.13.4.2 ostrstream constructors [depr.ostrstream.cons]
D.13.4.3 Member functions [depr.ostrstream.members]

Annex D (normative) Compatibility features [depr]

D.13 char* streams [depr.str.strstreams]

D.13.4 Class ostrstream [depr.ostrstream]

D.13.4.2 ostrstream constructors [depr.ostrstream.cons]
🔗ostrstream();
1 Effects: Initializes the base class with ostream(&sb) and sb with strstreambuf().
🔗ostrstream(char* s, int n, ios_base::openmode mode = ios_base::out);
2 Effects: Initializes the base class with ostream(&sb), and sb with one of two constructors:
(2.1)
  • If (mode & app) == 0, then s shall designate the first element of an array of n elements.

    The constructor is strstreambuf(s, n, s).

(2.2)
  • If (mode & app) != 0, then s shall designate the first element of an array of n elements that contains an ntbs whose first element is designated by s. The constructor is strstreambuf(s, n, s + std​::​strlen(s)).[cpp20 1]


  1. The function signature strlen(const char*) is declared in <cstring>. 


[edit]

Source: https://timsong-cpp.github.io/cppwp/n4950/depr.ostrstream.cons

1 Scope [intro.scope]
2 Normative references [intro.refs]
3 Terms and definitions [intro.defs]
4 General principles [intro]
5 Lexical conventions [lex]
6 Basics [basic]
7 Expressions [expr]
8 Statements [stmt.stmt]
9 Declarations [dcl.dcl]
10 Modules [module]
11 Classes [class]
12 Overloading [over]
13 Templates [temp]
14 Exception handling [except]
15 Preprocessing directives [cpp]
16 Library introduction [library]
17 Language support library [support]
18 Concepts library [concepts]
19 Diagnostics library [diagnostics]
20 Memory management library [mem]
21 Metaprogramming library [meta]
22 General utilities library [utilities]
23 Strings library [strings]
24 Containers library [containers]
25 Iterators library [iterators]
26 Ranges library [ranges]
27 Algorithms library [algorithms]
28 Numerics library [numerics]
29 Time library [time]
30 Localization library [localization]
31 Input/output library [input.output]
32 Regular expressions library [re]
33 Concurrency support library [thread]
Annex A (informative) Grammar summary [gram]
Annex B (normative) Implementation quantities [implimits]
Annex C (informative) Compatibility [diff]
Annex D (normative) Compatibility features [depr]
D.1 General [depr.general]
D.2 Arithmetic conversion on enumerations [depr.arith.conv.enum]
D.3 Implicit capture of *this by reference [depr.capture.this]
D.4 Array comparisons [depr.array.comp]
D.5 Deprecated volatile types [depr.volatile.type]
D.6 Redeclaration of static constexpr data members [depr.static.constexpr]
D.7 Non-local use of TU-local entities [depr.local]
D.8 Implicit declaration of copy functions [depr.impldec]
D.9 Literal operator function declarations using an identifier [depr.lit]
D.10 template keyword before qualified names [depr.template.template]
D.11 Requires paragraph [depr.res.on.required]
D.12 has_denorm members in numeric_limits [depr.numeric.limits.has.denorm]
D.13 Deprecated C macros [depr.c.macros]
D.14 Relational operators [depr.relops]
D.15 char* streams [depr.str.strstreams]
D.15.1 Header <strstream> synopsis [depr.strstream.syn]
D.15.2 Class strstreambuf [depr.strstreambuf]
D.15.3 Class istrstream [depr.istrstream]
D.15.4 Class ostrstream [depr.ostrstream]
D.15.4.1 General [depr.ostrstream.general]
D.15.4.2 ostrstream constructors [depr.ostrstream.cons]
D.15.4.3 Member functions [depr.ostrstream.members]

Annex D (normative) Compatibility features [depr]

D.15 char* streams [depr.str.strstreams]

D.15.4 Class ostrstream [depr.ostrstream]

D.15.4.2 ostrstream constructors [depr.ostrstream.cons]
🔗ostrstream();
1 Effects: Initializes the base class with ostream(&sb) and sb with strstreambuf().
🔗ostrstream(char* s, int n, ios_base::openmode mode = ios_base::out);
2 Effects: Initializes the base class with ostream(&sb), and sb with one of two constructors:
(2.1)
  • If (mode & app) == 0, then s shall designate the first element of an array of n elements.

    The constructor is strstreambuf(s, n, s).

(2.2)
  • If (mode & app) != 0, then s shall designate the first element of an array of n elements that contains an ntbs whose first element is designated by s. The constructor is strstreambuf(s, n, s + std​::​strlen(s)).[cpp23 1]


  1. The function signature strlen(const char*) is declared in <cstring>.