Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) inline

 

 

inline is a keyword to suggest to the compiler to perhaps put that function's body at the call site and thus preventing a function call.

 

Prefer inline over #define [1].

 

Understand the ins and outs of inlining [2].

 

 

 

 

 

References

 

  1. Scott Meyers. Effective C++ (3rd edition). ISBN: 0-321-33487-6. Item 2: 'Prefer consts, enums, and inlines to defines'
  2. Scott Meyers. Effective C++ (3rd edition). ISBN: 0-321-33487-6. Item 30: 'Understand the ins and outs of inlining'

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict