CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2009
    Posts
    5

    template function problem

    Is it possible to declare template functions in a header file without first declaring them in a class?

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: template function problem

    It is possible, even though your question is not very clear.

    The STL library is a template library and only consists of header files.
    STL contains template classes and well as global template functions.
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  3. #3
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: template function problem

    Not really understand your question.
    Thanks for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured