]> rtime.felk.cvut.cz Git - l4.git/blob - tools/preprocess/test/verify/operator.h
1ce3cf4f236cb261ba57049ff4a9b1e70c936a37
[l4.git] / tools / preprocess / test / verify / operator.h
1 // AUTOMATICALLY GENERATED -- DO NOT EDIT!         -*- c++ -*-
2
3 #ifndef operator_h
4 #define operator_h
5
6 //
7 // INTERFACE definition follows 
8 //
9
10 #line 2 "operator.cpp"
11
12 class Foo
13 {
14
15 public:  
16 #line 10 "operator.cpp"
17   void * 
18   operator new(size_t); // funny comment
19   
20 #line 16 "operator.cpp"
21   Foo&
22   operator+(const Foo&);        // funny comment
23   
24 #line 22 "operator.cpp"
25   Foo&
26   operator=(const Foo&);        // funny comment
27   
28 #line 28 "operator.cpp"
29   Foo&
30   operator*(const Foo&);        // funny comment
31 };
32
33 #line 34 "operator.cpp"
34 template <typename T, typename A> std::vector<T, A >& 
35 operator <<(std::vector<T, A>& in, const T& new_elem);
36
37 //
38 // IMPLEMENTATION of function templates
39 //
40
41
42 #line 32 "operator.cpp"
43
44
45 template <typename T, typename A> std::vector<T, A >& 
46 operator <<(std::vector<T, A>& in, const T& new_elem)
47 {
48   in.push_back (new_elem);
49   return in;
50 }
51
52 #endif // operator_h