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