tmp/tmpa42otq97/{from.md → to.md}
RENAMED
|
@@ -24,13 +24,13 @@ namespace std {
|
|
| 24 |
}
|
| 25 |
```
|
| 26 |
|
| 27 |
[*Example 1*:
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
|
| 33 |
``` cpp
|
| 34 |
template<class T> struct iterator_traits<BinaryTreeIterator<T>> {
|
| 35 |
using iterator_category = bidirectional_iterator_tag;
|
| 36 |
using difference_type = ptrdiff_t;
|
|
|
|
| 24 |
}
|
| 25 |
```
|
| 26 |
|
| 27 |
[*Example 1*:
|
| 28 |
|
| 29 |
+
A program-defined iterator `BinaryTreeIterator` can be included into the
|
| 30 |
+
bidirectional iterator category by specializing the `iterator_traits`
|
| 31 |
+
template:
|
| 32 |
|
| 33 |
``` cpp
|
| 34 |
template<class T> struct iterator_traits<BinaryTreeIterator<T>> {
|
| 35 |
using iterator_category = bidirectional_iterator_tag;
|
| 36 |
using difference_type = ptrdiff_t;
|