File: test_template.cc

package info (click to toggle)
source-highlight 1.11-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,872 kB
  • ctags: 4,699
  • sloc: sh: 3,633; cpp: 2,606; lex: 2,463; ansic: 1,610; makefile: 537; php: 185; perl: 145; yacc: 122; ruby: 63; sed: 53; python: 45; ml: 38; java: 30
file content (14 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test for templates (probably won't compile with C++ :-)

#include "map"
#include <vector.h>
#include <algorithm>

int i = j<k && j>d

template <typename First,
          typename Second,
          typename CompareFirst = std::less<First>,
          typename CompareSecond = std::less<Second> >

Foo foo<class Test>