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