home *** CD-ROM | disk | FTP | other *** search
- The main reason to declare a function to be inline is to eliminate
- the overhead of function calls. Classes often have member
- functions with very small bodies. The time saved by inlining
- small functions that are frequently called can be considerable.
- For functions that contain more than a very few statements, the
- benefit of faster execution must be weighed against the cost of
- the extra space required to store multiple copies of the function.
-