added some comments. remove .pc files on make clean
[libt2n] / example-codegen / other-1.cpp
CommitLineData
85106017 1#include "other.hxx"
a96ab628
JT
2using namespace std;
3
4//! test function overload
5LIBT2N_EXPORT int t3(int i)
6{
7 return i;
8}
9
10//! test pair, multiple arguments and namespace
11LIBT2N_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
17LIBT2N_EXPORT bool t3(const std::vector<int> &i)
18{
19 return (i.size()==1) && (i[0]==10);
20}