static
local variables of an inline
function in C++ are guaranteed to exist as if being a single global variable, if my understanding is correct.
Does the same apply if the inline
function is a template, where the compiler can generate multiple versions of the function?