1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    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