Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
mutable std::atomic<node *> first: I had originally done this, but I felt that it was better to have it be properly const, and make it clear in the exact location where bypassing this was needed.
Infinite loop on non-x86: Are there platforms where the updated value will never be seen by the waiting thread? As long as it happens eventually, it will continue.
Use inline functions for terminal and spin: ✓ Fix comment at ForwardIterator definition: ✓ Rename ForwardIterator to iterator_template: ✓ Properly constrain iterator operators: ✓ Fix decrement comment to increment: ✓ Use --foo instead of fetch_sub: ✓