What is template?

Discussion in 'C++' started by johnBMitchell, Apr 26, 2012.

  1. johnBMitchell

    johnBMitchell New Member

    Joined:
    Feb 17, 2011
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    CA, USA
    Home Page:
    http://www.spinxwebdesign.com/
    When you write large program then it is most important to manage all the details in proper manner without any complexity. In program there are lots parameters which are used again and again in different part of coding. So template is way to define those repeated parameters in one module and called it in different coding part without adding entire details.

    Syntax of function templates

    Template<classidentifier>function_declaration;
    template <typename identifier> function_declaration;
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice