An inline variable is allowed to be defined in multiple translation units without violating the One Definition Rule. If it is multiply defined, the linker will merge all definitions into a single object in the final program.
Defining a static data member in the class definition
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0