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
Copy file name to clipboardExpand all lines: docs/standard-library/iterator-functions.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ An integral type that is convertible to the iterator's difference type and that
28
28
29
29
The range must be nonsingular, where the iterators must be dereferenceable or past the end.
30
30
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.
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.
32
32
33
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.
34
34
@@ -268,15 +268,15 @@ auto cbegin(const Container& cont)
268
268
### Parameters
269
269
270
270
*`cont`*\
271
-
A container or initializer_list.
271
+
A container or `initializer_list`.
272
272
273
273
### Return Value
274
274
275
275
A constant `cont.begin()`.
276
276
277
277
### Remarks
278
278
279
-
This function works with all C++ Standard Library containers and with [initializer_list](../standard-library/initializer-list-class.md).
279
+
This function works with all C++ Standard Library containers and with [`initializer_list`](../standard-library/initializer-list-class.md).
280
280
281
281
You can use this member function in place of the `begin()` template function to guarantee that the return value is `const_iterator`. Typically, it's used with the [`auto`](../cpp/auto-cpp.md) type deduction keyword, as shown in the following example. In the example, consider `Container` to be a modifiable (non- **`const`**) container or `initializer_list` of any kind that supports `begin()` and `cbegin()`.
282
282
@@ -329,7 +329,7 @@ Get a reverse read-only iterator to the elements of the container, starting at t
329
329
template <classC> constexprautocrbegin(const C& c) -> decltype(std::rbegin(c));
330
330
```
331
331
332
-
## Parameters
332
+
### Parameters
333
333
334
334
*`C`*\
335
335
The type of the container.
@@ -372,7 +372,7 @@ Get the sentinel at the end of a read-only reversed sequence of elements.
372
372
template <classC> constexprautocrend(const C& c) -> decltype(std::rend(c));
0 commit comments