File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,21 @@ class blocking_iterator {
28
28
*/
29
29
using reference = const typename Channel::value_type&;
30
30
31
+ /* *
32
+ * @brief Supporting single-pass reading of elements.
33
+ */
34
+ using iterator_category = std::input_iterator_tag;
35
+
36
+ /* *
37
+ * @brief Signed integral type for iterator difference.
38
+ */
39
+ using difference_type = std::ptrdiff_t ;
40
+
41
+ /* *
42
+ * @brief Pointer type to the value_type.
43
+ */
44
+ using pointer = const value_type*;
45
+
31
46
/* *
32
47
* @brief Constructs a blocking iterator from a channel reference.
33
48
*
@@ -75,16 +90,4 @@ class blocking_iterator {
75
90
76
91
} // namespace msd
77
92
78
- /* *
79
- * @brief Input iterator specialization
80
- */
81
- // / \cond
82
- template <typename T>
83
- struct std ::iterator_traits<msd::blocking_iterator<T>> {
84
- using value_type = typename msd::blocking_iterator<T>::value_type;
85
- using reference = typename msd::blocking_iterator<T>::reference;
86
- using iterator_category = std::input_iterator_tag;
87
- };
88
- // / \endcond
89
-
90
93
#endif // MSD_CHANNEL_BLOCKING_ITERATOR_HPP_
You can’t perform that action at this time.
0 commit comments