cameron314 / cameron314/concurrentqueue
Dequeue a list using an std::vector
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.5k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
First of all thank you for the great efficient queue.
I have a novice question.
I need to use an std vector instead of a static array and need to reuse it in a while loop.
Do you have an example that illustrate this use case.
My concern is the follow:
Do I need to clear the vector each time ?
Thank you for your help.
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 reviewing the queue's existing usage documentation and examples for enqueueing into and dequeuing into an std::vector. Confirm whether a reused vector must be cleared between iterations, then document the answer with a small example if the project has an appropriate documentation location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100