Practice · 1 of 2
Pool Acquire and Exhaust
CHALLENGE
Difficulty: advanced+25 XP
Complete the fixed-size BytePool declared in the boilerplate. acquire() hands out block pointers and calls AllocTracker::noteAlloc() on success; it must return nullptr when the pool is exhausted. This challenge only tests acquire/exhaust behavior — release comes next.
Press Submit to check your solution.
Back to lesson: Practice: Practice: Pool Mechanics