Edit: I\'ve restored the original title but really what I should have asked was this: \'How do C++ linkers handle class methods which have be
The inline
keyword deals with c++ definition of a function. The compiler may inline object code where ever it wants.
Functions defined inline (eg they use the inline
keyword), create object code for the function in every compilation unit. Those functions are marked as special so the linker knows to only use one.
See this answer for more specifics.