I wanted to know a way to find an object from tuple.The tuple maybe set in
python.The flowing is sample.
#######################################################################
#include <boost/python/tuple.hpp>
using namespace boost::python;
class A {
public:
A() {
M=make_tule("ab","cd","1234");
}
bool find(std::string ss) {
//How to find an object from tuple "M" and return "true" or
"false",. The function "find" would work in c++.
}
tuple M;
}
BOOST_PYTHON_MODULE(ctopy)
{
class_<A> ("A",init<>())
.add_property("M",&A::M)
;
}
#######################################################################
_______________________________________________
Cplusplus-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/cplusplus-sig