99namespace msd {
1010
1111/* *
12- * @brief An iterator that block the current thread, waiting to fetch elements from the channel.
12+ * @brief An iterator that blocks the current thread, waiting to fetch elements from the channel.
1313 *
14- * Used to implement channel range-based for loop.
14+ * @details Used to implement channel range-based for loop.
1515 *
1616 * @tparam Channel Type of channel being iterated.
1717 */
@@ -80,7 +80,6 @@ class blocking_iterator {
8080 * @brief Makes iteration continue until the channel is closed and empty.
8181 *
8282 * @param other Another blocking_iterator to compare with.
83- *
8483 * @return true if the channel is not closed or not empty (continue iterating).
8584 * @return false if the channel is closed and empty (stop iterating).
8685 */
@@ -95,7 +94,7 @@ class blocking_iterator {
9594/* *
9695 * @brief An output iterator pushes elements into a channel. Blocking until the channel is not full.
9796 *
98- * Used to integrate with standard algorithms that require an output iterator.
97+ * @details Used to integrate with standard algorithms that require an output iterator.
9998 *
10099 * @tparam Channel Type of channel being iterated.
101100 */
@@ -137,11 +136,9 @@ class blocking_writer_iterator {
137136 /* *
138137 * @brief Writes an element into the channel, blocking until space is available.
139138 *
140- * @note There is no effect if the channel is closed.
141- *
142139 * @param value The value to be written into the channel.
143- *
144140 * @return The iterator itself.
141+ * @note There is no effect if the channel is closed.
145142 */
146143 blocking_writer_iterator& operator =(reference value)
147144 {
@@ -152,12 +149,12 @@ class blocking_writer_iterator {
152149 /* *
153150 * @brief Not applicable (handled by operator=).
154151 *
152+ * @return The iterator itself.
153+ *
155154 * @note It's uncommon to return a reference to an iterator, but I don't want to return a value from the channel.
156155 * This iterator is supposed to be used only to write values.
157156 * I don't know if it's a terrible idea or not, but it looks related to the issue with MSVC
158157 * in the Transform test in tests/channel_test.cpp.
159- *
160- * @return The iterator itself.
161158 */
162159 blocking_writer_iterator& operator *() { return *this ; }
163160
@@ -183,9 +180,7 @@ class blocking_writer_iterator {
183180 * @brief Creates a blocking iterator for the given channel.
184181 *
185182 * @tparam Channel Type of channel being iterated.
186- *
187183 * @param chan Reference to the channel this iterator will iterate over.
188- *
189184 * @return A blocking iterator for the specified channel.
190185 */
191186template <typename Channel>
0 commit comments