Files Classes Functions Hierarchy
#include <cassert>#include <iostream>#include <policyselector.h>#include <policydefault.h>
Go to the source code of this file.
Functions | |
| void | test01 () |
| void | test02 () |
| void | test03 () |
| int | main (int argc, char **agv) |
| int main | ( | int | argc, | |
| char ** | agv | |||
| ) |
| void test01 | ( | ) |
Definition at line 8 of file main.cpp.
00009 { 00010 cout << "Test 1" << endl; 00011 cout << "Testing the default policy" << endl; 00012 policyselector<> app; 00013 cout << endl << endl; 00014 }
| void test02 | ( | ) |
Definition at line 28 of file main.cpp.
00029 { 00030 cout << "Test 2" << endl; 00031 cout << "Overriding the 2nd policy with policy2new" << endl; 00032 // policyselector< policyov2< policy2new, policydefault > > app; 00033 policyselector< policyov2< policy2new > > app; 00034 cout << endl << endl; 00035 }
| void test03 | ( | ) |
Definition at line 38 of file main.cpp.
00039 { 00040 cout << "Test 3" << endl; 00041 cout << "Default template argument overloading" << endl << endl; 00042 00043 00044 cout << "A silly example because there are only 3 tempate arguments" << endl; 00045 cout << " For templates with 5,6,+ arguments this may be useful." << endl; 00046 cout << endl; 00047 00048 cout << "Overloading the 2nd policy with policy4, then overloading" << endl; 00049 cout << " the first policy with policy5." << endl; 00050 00051 policyselector< policyov1< policy5, policyov2< policy4, policydefault > > > app; 00052 cout << endl << endl; 00053 }
1.5.8