You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a966a16
Browse filesBrowse the repository at this point in the historyBrowse files
The manipulator extracts and discards any elements `ch` for which [use_facet](../standard-library/basic-filebuf-class.md#open)< **ctype**\<**Elem**> >( [getloc](../standard-library/ios-base-class.md#getloc)). **is**( **ctype**\<**Elem**>:: **space**, **ch**) is true.
62
62
63
-
The function calls [setstate](../standard-library/basic-ios-class.md#setstate)( **eofbit**) if it encounters end of file while extracting elements. It returns `_Istr`.
63
+
The function calls [setstate](../standard-library/basic-ios-class.md#setstate)( **eofbit**) if it encounters end of file while extracting elements. It returns *_Istr*.
Copy file name to clipboardExpand all lines: docs/standard-library/istream-iterator-class.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,16 +29,16 @@ class istream_iterator
29
29
30
30
### Parameters
31
31
32
-
`Type`
32
+
*Type*
33
33
The type of object to be extracted from the input stream.
34
34
35
-
`CharType`
36
-
The type that represents the character type for the `istream_iterator`. This argument is optional and the default value is `char`.
35
+
*CharType*
36
+
The type that represents the character type for the `istream_iterator`. This argument is optional and the default value is **char**.
37
37
38
-
`Traits`
38
+
*Traits*
39
39
The type that represents the character type for the `istream_iterator`. This argument is optional and the default value is `char_traits`< `CharType`>.
40
40
41
-
`Distance`
41
+
*Distance*
42
42
A signed integral type that represents the difference type for the `istream_iterator`. This argument is optional and the default value is `ptrdiff_t`.
43
43
44
44
After constructing or incrementing an object of class istream_iterator with a nonnull stored pointer, the object attempts to extract and store an object of type `Type` from the associated input stream. If the extraction fails, the object effectively replaces the stored pointer with a null pointer, thus making an end-of-sequence indicator.
@@ -81,7 +81,7 @@ typedef CharType char_type;
81
81
82
82
### Remarks
83
83
84
-
The type is a synonym for the template parameter **Chartype**.
84
+
The type is a synonym for the template parameter `Chartype`.
The input stream to be read use to initialize the `istream_iterator`.
136
136
137
137
### Remarks
138
138
139
-
The First constructor initializes the input stream pointer with a null pointer and creates an end-of-stream iterator. The second constructor initializes the input stream pointer with *&_Istr*, then attempts to extract and store an object of type **Type**.
139
+
The First constructor initializes the input stream pointer with a null pointer and creates an end-of-stream iterator. The second constructor initializes the input stream pointer with *&_Istr*, then attempts to extract and store an object of type `Type`.
140
140
141
141
The end-of-stream iterator can be use to test whether an `istream_iterator` has reached the end of a stream.
142
142
@@ -192,15 +192,15 @@ See [istream_iterator](#istream_iterator) for an example of how to declare and u
The first member operator returns a reference to the incremented object of type **Type** extracted from the input stream and the second member function returns a copy of the object.
299
+
The first member operator returns a reference to the incremented object of type `Type` extracted from the input stream and the second member function returns a copy of the object.
300
300
301
301
### Example
302
302
@@ -340,7 +340,7 @@ typedef Traits traits_type;
340
340
341
341
### Remarks
342
342
343
-
The type is a synonym for the template parameter **Traits**.
343
+
The type is a synonym for the template parameter *Traits*.
extracts up to *N* - 1 elements and stores them in the array starting at _ *Str*. If `Istr`. [width](../standard-library/ios-base-class.md#width) is greater than zero, *N* is `Istr`. **width**; otherwise, it is the size of the largest array of **Elem** that can be declared. The function always stores the value **Elem()** after any extracted elements it stores. Extraction stops early on end of file, on a character with value **Elem**(0) (which is not extracted), or on any element (which is not extracted) that would be discarded by [ws](../standard-library/istream-functions.md#ws). If the function extracts no elements, it calls `Istr`. [setstate](../standard-library/basic-ios-class.md#setstate)(**failbit**). In any case, it calls `Istr`. **width**(0) and returns `Istr`.
86
+
extracts up to *N* - 1 elements and stores them in the array starting at _ *Str*. If `Istr`. [width](../standard-library/ios-base-class.md#width) is greater than zero, *N* is `Istr`. **width**; otherwise, it is the size of the largest array of `Elem` that can be declared. The function always stores the value `Elem()` after any extracted elements it stores. Extraction stops early on end of file, on a character with value **Elem**(0) (which is not extracted), or on any element (which is not extracted) that would be discarded by [ws](../standard-library/istream-functions.md#ws). If the function extracts no elements, it calls `Istr`. [setstate](../standard-library/basic-ios-class.md#setstate)(**failbit**). In any case, it calls `Istr`. **width**(0) and returns *Istr*.
87
87
88
-
**Security Note** The null-terminated string being extracted from the input stream must not exceed the size of the destination buffer `str`. For more information, see [Avoiding Buffer Overruns](http://msdn.microsoft.com/library/windows/desktop/ms717795).
88
+
**Security Note** The null-terminated string being extracted from the input stream must not exceed the size of the destination buffer *str*. For more information, see [Avoiding Buffer Overruns](http://msdn.microsoft.com/library/windows/desktop/ms717795).
extracts an element, if it is possible, and stores it in `Ch`. Otherwise, it calls **is**. [setstate](../standard-library/basic-ios-class.md#setstate)( **failbit**). In any case, it returns `Istr`.
98
+
extracts an element, if it is possible, and stores it in *Ch*. Otherwise, it calls **is**. [setstate](../standard-library/basic-ios-class.md#setstate)( **failbit**). In any case, it returns *Istr*.
The type is a synonym for template class [basic_iostream](../standard-library/basic-iostream-class.md), specialized for elements of type `char` with default character traits.
26
+
The type is a synonym for template class [basic_iostream](../standard-library/basic-iostream-class.md), specialized for elements of type **char** with default character traits.
The type is a synonym for template class [basic_istream](../standard-library/basic-istream-class.md), specialized for elements of type `char` with default character traits.
38
+
The type is a synonym for template class [basic_istream](../standard-library/basic-istream-class.md), specialized for elements of type **char** with default character traits.
39
39
40
40
## <aname="wiostream"></a> wiostream
41
41
42
-
A type `basic_iostream` specialized on `wchar_t`.
42
+
A type `basic_iostream` specialized on **wchar_t**.
The type is a synonym for template class [basic_iostream](../standard-library/basic-iostream-class.md), specialized for elements of type `wchar_t` with default character traits.
50
+
The type is a synonym for template class [basic_iostream](../standard-library/basic-iostream-class.md), specialized for elements of type **wchar_t** with default character traits.
51
51
52
52
## <aname="wistream"></a> wistream
53
53
54
-
A type `basic_istream` specialized on `wchar_t`.
54
+
A type `basic_istream` specialized on **wchar_t**.
The type is a synonym for template class [basic_istream](../standard-library/basic-istream-class.md), specialized for elements of type `wchar_t` with default character traits.
62
+
The type is a synonym for template class [basic_istream](../standard-library/basic-istream-class.md), specialized for elements of type **wchar_t** with default character traits.
Copy file name to clipboardExpand all lines: docs/standard-library/istream.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,8 @@ Defines the template class basic_istream, which mediates extractions for the ios
27
27
28
28
|Type name|Description|
29
29
|-|-|
30
-
|[iostream](../standard-library/istream-typedefs.md#iostream)|A type `basic_iostream` specialized on `char`.|
31
-
|[istream](../standard-library/istream-typedefs.md#istream)|A type `basic_istream` specialized on `char`.|
30
+
|[iostream](../standard-library/istream-typedefs.md#iostream)|A type `basic_iostream` specialized on **char**.|
31
+
|[istream](../standard-library/istream-typedefs.md#istream)|A type `basic_istream` specialized on **char**.|
32
32
|[wiostream](../standard-library/istream-typedefs.md#wiostream)|A type `basic_iostream` specialized on **wchar**.|
33
33
|[wistream](../standard-library/istream-typedefs.md#wistream)|A type `basic_istream` specialized on **wchar**.|
34
34
@@ -50,7 +50,7 @@ Defines the template class basic_istream, which mediates extractions for the ios
50
50
|Class|Description|
51
51
|-|-|
52
52
|[basic_iostream](../standard-library/basic-iostream-class.md)|A stream class that can do both input and output.|
53
-
|[basic_istream](../standard-library/basic-istream-class.md)|The template class describes an object that controls extraction of elements and encoded objects from a stream buffer with elements of type **Elem**, also known as [char_type](../standard-library/basic-ios-class.md#char_type), whose character traits are determined by the class **Tr**, also known as [traits_type](../standard-library/basic-ios-class.md#traits_type).|
53
+
|[basic_istream](../standard-library/basic-istream-class.md)|The template class describes an object that controls extraction of elements and encoded objects from a stream buffer with elements of type `Elem`, also known as [char_type](../standard-library/basic-ios-class.md#char_type), whose character traits are determined by the class `Tr`, also known as [traits_type](../standard-library/basic-ios-class.md#traits_type).|
Copy file name to clipboardExpand all lines: docs/standard-library/istreambuf-iterator-class.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,17 +26,17 @@ class istreambuf_iterator
26
26
27
27
### Parameters
28
28
29
-
`CharType`
29
+
*CharType*
30
30
The type that represents the character type for the istreambuf_iterator.
31
31
32
-
`Traits`
32
+
*Traits*
33
33
The type that represents the character type for the istreambuf_iterator. This argument is optional and the default value is `char_traits`\< *CharType>.*
34
34
35
35
## Remarks
36
36
37
37
The istreambuf_iterator class must satisfy the requirements for an input iterator.
38
38
39
-
After constructing or incrementing an object of class istreambuf_iterator with a non-null stored pointer, the object effectively attempts to extract and store an object of type **CharType** from the associated input stream. The extraction may be delayed, however, until the object is actually dereferenced or copied. If the extraction fails, the object effectively replaces the stored pointer with a null pointer, thus making an end-of-sequence indicator.
39
+
After constructing or incrementing an object of class istreambuf_iterator with a non-null stored pointer, the object effectively attempts to extract and store an object of type *CharType* from the associated input stream. The extraction may be delayed, however, until the object is actually dereferenced or copied. If the extraction fails, the object effectively replaces the stored pointer with a null pointer, thus making an end-of-sequence indicator.
40
40
41
41
### Constructors
42
42
@@ -84,7 +84,7 @@ typedef CharType char_type;
84
84
85
85
### Remarks
86
86
87
-
The type is a synonym for the template parameter **CharType**.
87
+
The type is a synonym for the template parameter *CharType*.
A range is defined by the `istreambuf_iterator` to the current position and the end-of-stream iterator, but since all non-end-of stream iterators are equivalent under the **equal** member function, it is not possible to define any subranges using `istreambuf_iterator`s. The `==` and `!=` operators have the same semantics.
141
+
A range is defined by the `istreambuf_iterator` to the current position and the end-of-stream iterator, but since all non-end-of stream iterators are equivalent under the `equal` member function, it is not possible to define any subranges using `istreambuf_iterator`s. The `==` and `!=` operators have the same semantics.
The input stream buffer to which the `istreambuf_iterator` is being attached.
231
231
232
-
`_Istr`
232
+
*_Istr*
233
233
The input stream to which the `istreambuf_iterator` is being attached.
234
234
235
235
### Remarks
236
236
237
-
The first constructor initializes the input stream-buffer pointer with `strbuf`. The second constructor initializes the input stream-buffer pointer with `_Istr`. `rdbuf`, and then eventually attempts to extract and store an object of type **CharType**.
237
+
The first constructor initializes the input stream-buffer pointer with *strbuf*. The second constructor initializes the input stream-buffer pointer with *_Istr*. `rdbuf`, and then eventually attempts to extract and store an object of type `CharType`.
238
238
239
239
### Example
240
240
@@ -323,7 +323,7 @@ An `istreambuf_iterator` or a reference to an `istreambuf_iterator`.
323
323
324
324
### Remarks
325
325
326
-
The first operator eventually attempts to extract and store an object of type **CharType** from the associated input stream. The second operator makes a copy of the object, increments the object, and then returns the copy.
326
+
The first operator eventually attempts to extract and store an object of type `CharType` from the associated input stream. The second operator makes a copy of the object, increments the object, and then returns the copy.
327
327
328
328
### Example
329
329
@@ -379,7 +379,7 @@ The type is a synonym for `basic_streambuf`\< **CharType**, **Traits**>.
379
379
380
380
### Example
381
381
382
-
See [istreambuf_iterator](#istreambuf_iterator) for an example of how to declare and use **istreambuf_type**.
382
+
See [istreambuf_iterator](#istreambuf_iterator) for an example of how to declare and use `istreambuf_type`.
Copy file name to clipboardExpand all lines: docs/standard-library/istrstream-class.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,15 +70,15 @@ istrstream(
70
70
71
71
### Parameters
72
72
73
-
`count`
74
-
The length of the buffer (`ptr`).
73
+
*count*
74
+
The length of the buffer (*ptr*).
75
75
76
-
`ptr`
76
+
*ptr*
77
77
The contents with which the buffer is initialized.
78
78
79
79
### Remarks
80
80
81
-
All the constructors initialize the base class by calling [istream](../standard-library/istream-typedefs.md#istream)(**sb**), where **sb** is the stored object of class [strstreambuf](../standard-library/strstreambuf-class.md). The first two constructors also initialize **sb** by calling `strstreambuf`( ( **const**`char`\*) `ptr`, 0 ). The remaining two constructors instead call `strstreambuf`( ( **const**`char`*) `ptr`, `count` ).
81
+
All the constructors initialize the base class by calling [istream](../standard-library/istream-typedefs.md#istream)(**sb**), where `sb` is the stored object of class [strstreambuf](../standard-library/strstreambuf-class.md). The first two constructors also initialize `sb` by calling `strstreambuf`( ( **const**`char`\*) `ptr`, 0 ). The remaining two constructors instead call `strstreambuf`( ( **const**`char`*) `ptr`, `count` ).
82
82
83
83
## <aname="rdbuf"></a> istrstream::rdbuf
84
84
@@ -118,7 +118,7 @@ The member function returns [rdbuf](#rdbuf) -> [str](../standard-library/strstre
118
118
119
119
### Example
120
120
121
-
See [strstream::str](../standard-library/strstreambuf-class.md#str) for a sample that uses **str**.
121
+
See [strstream::str](../standard-library/strstreambuf-class.md#str) for a sample that uses `str`.
0 commit comments