quote:Original post by Drythe
what is ''inlined''?
An inline function just means that the actual function code is "copy and pasted" every time the function is called, instead of having a function call set up.
It executes faster, but takes up more space in the cache.
Also, no one else has pointed this out, but your GetNumParts() function actually is inlined. By including the function body inside the class (not just the declaration) you are instructing the compiler to make it inline. Actually, it''s more of a suggestion than an instruction, as the compiler is free to ignore it, but generally it will be inlined in release builds.