Thread: what is the difference?

  1. #1
    Registered User planet_abhi's Avatar
    Join Date
    Oct 2002

    what is the difference?

    What is the difference between function template & template function?

  2. #2
    Registered User
    Join Date
    Mar 2002
    Oh, the English language. Unfortunately, they may be the same thing. However, I generally think of a function template as being the function prototype and a template function as an overloaded function using template syntax vs independent functions.

    //function template
    void foo();

    //template function (or function template depending on "implied meaning).
    template<class T> bar();

    another possible use of the term function template would be this:

    returnType functionName(functionParameters);

    that is a function template is what the component parts of a function are in generic terms, or how you go about making up a function from it's component parts.
    Last edited by elad; 11-07-2003 at 10:26 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Review required for program of date difference
    By chottachatri in forum C Programming
    Replies: 6
    Last Post: 10-31-2008, 11:46 AM
  2. Difference Equations / Recurrence Relations
    By DavidP in forum A Brief History of
    Replies: 4
    Last Post: 10-05-2007, 10:26 AM
  3. What's the difference between var++ and ++var
    By ulillillia in forum C Programming
    Replies: 6
    Last Post: 05-31-2007, 02:27 AM
  4. how to get difference of digits
    By Leeman_s in forum C++ Programming
    Replies: 5
    Last Post: 12-20-2001, 08:32 PM
  5. What is the Difference between ANSI C and non-ANSI C ?
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 11-24-2001, 06:55 AM