Programming Templates: Difference between revisions
From Gridkaschool
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
* Some files shown in the slides: [[Media:FunctionTemplates1.cc]] [[Media:FunctionTemplates2.cc]] [[Media:GetMaxValue.h]] |
* Some files shown in the slides: [[Media:FunctionTemplates1.cc]] [[Media:FunctionTemplates2.cc]] [[Media:GetMaxValue.h]] |
||
* Exercise: [[Media:practiceSimpleTemplate.cc]] |
* Exercise: [[Media:practiceSimpleTemplate.cc]] |
||
* Exercise: [[Media:specialisation.cc]] |
|||
---- |
---- |
Revision as of 00:44, 8 September 2015
Description This workshop will contain the following topics (all topics consist of both, lecture style talk and practical programming):
- Reminder on template usage
- Policies
- Traits
All the single/few file examples will be compiled using the following SConscript:
SCons is a python based building tool, started with the command "scons".
Reminder on template usage
- Some files shown in the slides: Media:FunctionTemplates1.cc Media:FunctionTemplates2.cc Media:GetMaxValue.h
- Exercise: Media:practiceSimpleTemplate.cc
- Exercise: Media:specialisation.cc
Policies
- Code Example for Policy vs. Utility: Media:PolicyAndEllipsisExample1.tgz
- Exercise: Media:PracticePolicyProject.tgz