Question.6
A developer creates three ring buffer instantiations:
RingBuffer<int, 64> buf1; RingBuffer<int, 128> buf2; RingBuffer<int, 64> buf3;
How many separate RingBuffer classes does the compiler generate?
Select Answer
Three -- one per variable
Two -- RingBuffer<int,64> and RingBuffer<int,128> are different types; buf1 and buf3 share the same generated code
One -- the compiler merges all instantiations
Three -- each variable gets its own code