I have some code that 100% works for the use case I have. I\'m just wondering if anyone can explain how and why it works.
I have a template class that sits between so
When you ask a question along the lines of "why something works?", it implies that the fact that it works is somehow surprising to you. It is impossible to answer the question unless you explain why you find it surprising.
Why it works? Because the language specification explicitly says that it shall work. There's no other answer, until you explain your concerns in more detail.