put include dependencies into seperate file (one file per command group). simplifies...
[libt2n] / example-codegen / other-1.cpp
1 #include "other.hxx"
2 using namespace std;
3
4 //! test function overload
5 LIBT2N_EXPORT int t3(int i)
6 {
7     return i;
8 }
9
10 //! test pair, multiple arguments and namespace
11 LIBT2N_EXPORT bool t3(int i, float f, const string &s, const pair<int, float> &p)
12 {
13     return (i==p.first) && (f==p.second) && (s=="hello");
14 }
15
16 //! test std::vector
17 LIBT2N_EXPORT bool t3(const std::vector<int> &i)
18 {
19     return (i.size()==1) && (i[0]==10);
20 }