Skip to content

Commit 14fdc14

Browse files
Enhanced Doxygen
1 parent 6fdba5f commit 14fdc14

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

include/queue/wait_queue.hpp

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,20 @@ concept supports_size = requires (Ctr ctr) {
191191
ctr.size();
192192
};
193193

194-
// declaration for wait_queue
195-
194+
/**
195+
* @brief MPMC thread-safe wait queue with shutdown semantics.
196+
*
197+
* @tparam T Type of value that will be passed through the queue.
198+
*
199+
* @tparam Container that is used as the underlying data queue.
200+
*
201+
* @pre The value type must be either copy constructible or move constructible. It does not
202+
* have to be both, and in particular a default constructor is not required.
203+
*
204+
* @pre The container type must support certain operations depending on which ones are called.
205+
* The constraints are specified on each particular operation.
206+
*
207+
*/
196208
template <typename T, typename Container = std::deque<T> >
197209
requires std::is_copy_constructible_v<T> || std::is_move_constructible_v<T>
198210
class wait_queue {

0 commit comments

Comments
 (0)