cameron314 / cameron314/readerwriterqueue

A variant of `try_dequeue` that returns `std::optional`

Open
#175 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.