namespace sky{
class FindNextMask{
public:
FindNextMask() {};
FindNextMask(int i):iter(i){}
bool operator()(const pair<int,string>& p)const{
if (iter <= p.first)
return true;
else
return false;
}
private:
int iter;
};
Then in another class say S
class S {
private:
list<pair<int,string> > A;
}
class_<std::vector<std::pair<double, double> > >("VectorOfPairs")
.def(vector_indexing_suite<std::vector<std::pair<double,double> > >());
class_<std::pair<double, double> >("DoublePair") // Wrapper for a pair only
.def_readwrite("first", &std::pair<double, double>::first)
.def_readwrite("second", &std::pair<double, double>::second);