File: Function-template.cxx

package info (click to toggle)
castxml 0.6.13-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,224 kB
  • sloc: cpp: 5,192; ansic: 352; sh: 85; makefile: 18
file content (8 lines) | stat: -rw-r--r-- 158 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
template <typename T>
T start(T)
{
  return T();
}
template <>
char start<char>(char);       // specialization
template int start<int>(int); // instantiation