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
The iterator that is to be incremented and that must satisfy the requirements for an input iterator.
24
23
25
-
*Off*\
24
+
*`Off`*\
26
25
An integral type that is convertible to the iterator's difference type and that specifies the number of increments the position of the iterator is to be advanced.
27
26
28
27
### Remarks
29
28
30
29
The range must be nonsingular, where the iterators must be dereferenceable or past the end.
31
30
32
-
If the `InputIterator` satisfies the requirements for a bidirectional iterator type, then *Off* may be negative. If `InputIterator` is an input or forward iterator type, *Off* must be nonnegative.
31
+
If the `InputIterator` satisfies the requirements for a bidirectional iterator type, then *Off* may be negative. If `InputIterator` is an input or forward iterator type, *`Off`* must be nonnegative.
33
32
34
33
The advance function has constant complexity when `InputIterator` satisfies the requirements for a random-access iterator; otherwise, it has linear complexity and so is potentially expensive.
35
34
@@ -81,27 +80,27 @@ LPOS is advanced 4 steps forward to point to the fifth element: 5.
81
80
LPOS is moved 3 steps back to point to the 2nd element: 2.
82
81
```
83
82
84
-
## <aname="back_inserter"></a> back_inserter
83
+
## <aname="back_inserter"></a> `back_inserter`
85
84
86
85
Creates an iterator that can insert elements at the back of a specified container.
The container into which the back insertion is to be executed.
97
96
98
97
### Return Value
99
98
100
-
A `back_insert_iterator` associated with the container object *_Cont*.
99
+
A `back_insert_iterator` associated with the container object *`Cont`*.
101
100
102
101
### Remarks
103
102
104
-
Within the C++ Standard Library, the argument must refer to one of the three sequence containers that have the member function `push_back`: [deque Class](../standard-library/deque-class.md), [list Class](../standard-library/list-class.md), or [vector Class](../standard-library/vector-class.md).
103
+
Within the C++ Standard Library, the argument must refer to one of the three sequence containers that have the member function `push_back`: [`deque` Class](../standard-library/deque-class.md), [`list` Class](../standard-library/list-class.md), or [`vector` Class](../standard-library/vector-class.md).
105
104
106
105
### Example
107
106
@@ -154,7 +153,7 @@ The initial vector vec is: ( 0 1 2 ).
154
153
After the insertions, the vector vec is: ( 0 1 2 30 40 500 600 ).
155
154
```
156
155
157
-
## <aname="begin"></a> begin
156
+
## <aname="begin"></a> `begin`
158
157
159
158
Retrieves an iterator to the first element in a specified container.
160
159
@@ -173,17 +172,17 @@ Ty *begin(Ty (& array)[Size]);
173
172
174
173
### Parameters
175
174
176
-
*cont*\
175
+
*`cont`*\
177
176
A container.
178
177
179
-
*array*\
178
+
*`array`*\
180
179
An array of objects of type `Ty`.
181
180
182
181
### Return Value
183
182
184
183
The first two template functions return `cont.begin()`. The first function is non-constant; the second one is constant.
185
184
186
-
The third template function returns *array*.
185
+
The third template function returns *`array`*.
187
186
188
187
### Example
189
188
@@ -256,7 +255,7 @@ Then sending an array to it would cause this compiler error:
256
255
error C2228: left of '.begin' must have class/struct/union
257
256
```
258
257
259
-
## <aname="cbegin"></a> cbegin
258
+
## <aname="cbegin"></a> `cbegin`
260
259
261
260
Retrieves a const (read-only) iterator to the first element in a specified container.
262
261
@@ -268,7 +267,7 @@ auto cbegin(const Container& cont)
268
267
269
268
### Parameters
270
269
271
-
*cont*\
270
+
*`cont`*\
272
271
A container or initializer_list.
273
272
274
273
### Return Value
@@ -289,7 +288,7 @@ auto i2 = Container.cbegin();
289
288
// i2 is Container<T>::const_iterator
290
289
```
291
290
292
-
## <aname="cend"></a> cend
291
+
## <aname="cend"></a> `cend`
293
292
294
293
Retrieves a const (read-only) iterator to the element that follows the last element in the specified container.
295
294
@@ -301,8 +300,8 @@ auto cend(const Container& cont)
301
300
302
301
### Parameters
303
302
304
-
*cont*\
305
-
A container or initializer_list.
303
+
*`cont`*\
304
+
A container or `initializer_list`.
306
305
307
306
### Return Value
308
307
@@ -322,15 +321,15 @@ auto i2 = Container.cend();
322
321
// i2 is Container<T>::const_iterator
323
322
```
324
323
325
-
## <aname="crbegin"></a> crbegin
324
+
## <aname="crbegin"></a> `crbegin`
326
325
327
326
Get a reverse read-only iterator to the elements of the container, starting at the end of the container.
328
327
329
328
```cpp
330
329
template <classC> constexprautocrbegin(const C& c) -> decltype(std::rbegin(c));
331
330
```
332
331
333
-
## <a name="crend"></a> crend
332
+
## Parameters
334
333
335
334
*`C`*\
336
335
The type of the container.
@@ -373,7 +372,7 @@ Get the sentinel at the end of a read-only reversed sequence of elements.
373
372
template <classC> constexprautocrend(const C& c) -> decltype(std::rend(c));
0 commit comments