Skip to main content

Practice · 2 of 3

A Fixed Ring from an NTTP

CHALLENGE
Difficulty: advanced+25 XP

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.

Back to lesson: Practice: if constexpr and NTTPs