C++
  Home arrow C++ arrow An Introduction to C++ Templates
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C++

An Introduction to C++ Templates
By: Kais Dukes
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 35
    2003-05-19

    Table of Contents:
  • An Introduction to C++ Templates
  • C Templates
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    An Introduction to C++ Templates


    (Page 1 of 3 )

    Do you feel as though a subset of functions within a class are preforming the same tasks, and only differ by datatype? The power of C++ templates is that they allow alogorithms to be abstracted from their data types. Read more ...

    Understanding the fundamentals of templates in C++ is something that few users of the language can afford to do without. However, those wishing to explore the more advanced features often find themselves struggling with a lack of clear explanation into exactly how templates are supported by the language. A frustrating problem when working with templates is that some vendors implement a subset of the C++ standard. This column will point out common pitfalls and provide an insight into how to produce fast, reusable, and efficient code using C++ templates.

    A testament to the power of templates is that entire libraries have been written as a set of template classes, most notably STL and ATL. The standard C++ library provides a wealth of reusable and flexible classes and algorithms, while ATL is the de facto standard for COM programming in C++. To master these and other template libraries, it is important to have more than a basic understanding of how templates work.

    More C++ Articles
    More By Kais Dukes


       · Thanx dev, This topic give me basic knowledge.Now i can start deep study on...
     

    C++ ARTICLES

    - More Tricks to Gain Speed in Programming Con...
    - Easy and Efficient Programming for Contests
    - Preparing For Programming Contests
    - Programming Contests: Why Bother?
    - Polymorphism in C++
    - Overview of Virtual Functions
    - Inheritance in C++
    - Extending the Basic Streams in C++
    - Using Stringstreams in C++
    - Custom Stream Manipulation in C++
    - General Stream Manipulation in C++
    - Serialize Your Class into Streams in C++
    - Advanced File Handling with Streams in C++
    - File Handling and Streams in C++
    - The STL String Class







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek