Skip to main content

Practice ยท 2 of 3

A Fixed Ring from an NTTP

Finish Ring<N>: push writes at head_ % N and advances head_ (wrapping is the point), capacity() returns N. The test wraps around the buffer edge to prove it.

Difficulty: advanced

Back to lesson: Practice: if constexpr and NTTPs