My book does a crappy job on explaining when to use an inline function. Is there a rule of thumb about when to use one?
This is a discussion on Inline functions within the C++ Programming forums, part of the General Programming Boards category; My book does a crappy job on explaining when to use an inline function. Is there a rule of thumb ...
My book does a crappy job on explaining when to use an inline function. Is there a rule of thumb about when to use one?
If the code is really small, such that actually setting up the stack and passing the variables is a considerable amount of its execution tiime.
Roughly how many lines would this function be? I know there is no exact number but I don't know how much code you mean.