Thread: inline void

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    21
    Yes, they both are different.
    inline void hello() will result in the function call being replaced by the definition during compile time. Hence there will be no overhead involved in pushing the contents to and from the stack that happens in the normal function call.
    PS: the functions defined within the class definition is treated as inline. EG:
    <<< UNTAGGED CODE DELETED >>>
    Inline functions will reduce the function time if the function is not complicated.
    Last edited by Salem; 10-21-2004 at 12:15 PM. Reason: deleting untagged code

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Replies: 3
    Last Post: 05-13-2007, 08:55 AM
  3. i cannot see the mouse arrow
    By peachchentao in forum C Programming
    Replies: 6
    Last Post: 12-10-2006, 04:14 AM
  4. Quack! It doesn't work! >.<
    By *Michelle* in forum C++ Programming
    Replies: 8
    Last Post: 03-02-2003, 12:26 AM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM