Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
C++ Tutorial
Template 64 codes
Home
C++ Tutorial
Template
1 A Generic bubble sort
2 A generic class
3 A generic safe array example
4 A generic stack with size 10
5 Array template
6 Calculate with SArray
7 Class specialization
8 Class templates
9 Default template arguments
10 Define class with iterator support and direct element access
11 Define implicit_cast
12 Define your own generic array
13 Demonstrate class specialization
14 Demonstrate non-type template arguments
15 Function template
16 Function with generic parameters
17 Generic list
18 Generic Queue
19 Generic quick sort
20 Generic Stack
21 Generic stack based on vector
22 Generic stack with deque
23 Generic Tree
24 Generic typeid function
25 Generic Vector
26 Loop with generic parameter
27 Max size as the parameter for a generic stack
28 Namespace with template function
29 Nested template type
30 Operator overload for generic parameters
31 Overload a function template declaration
32 Overload generic method and non-generic method
33 Overload template function
34 Partial specialization as end criteria
35 Primary template
36 Primary template to compute 3 to the Nth and full specialization to end the recursion
37 Primary template to compute sqrt(N) via iteration and partial specialization to end the iteration
38 Reference and non-reference template function
39 Specify template argument explicitly and implicitly
40 Sqrt
41 Template class 2
42 Template class Demo
43 Template counter
44 Template function for generic parameter and pointer to generic parameter
45 Template function for reference parameters
46 Template function to display the number limits
47 Template function to get maximum of two pointers
48 Template function to get the maximum of three values of any type (call-by-reference)
49 Template function to get the maximum of two values
50 Template function to print elements of an STL container
51 Template function with pointer parameter
52 Template holder class
53 Template specialization
54 Template stack based on deque
55 Template string stack
56 Template type
57 Use generic stack to store another container
58 Use template parameter as constructor parameter
59 Use two generic data types in a class definition
60 Using an overloaded function template
61 Using function template specialization
62 Using standard parameters in a template function
63 Virtual template
64 Virtual template inheritance