cameron314 / cameron314/readerwriterqueue
A variant of `try_dequeue` that returns `std::optional`
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.6k
- Forks
- 736
- Avg merge
- 10d 5h
- Merged PRs (30d)
- 1
Description
It doesn't appear possible to use try_dequeue on a queue of objects that are not default constructible, it would be nice if this could be supported by having a variant that returns optional.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the try_dequeue implementation and its public queue API in the repository. Add a variant that returns std::optional so queues containing non-default-constructible objects can be used, and verify that it represents both successful dequeue and an empty queue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100