[C++-sig] pycxx, sequences, stl

Neal Becker ndbecker2 at verizon.net
Tue Aug 3 16:33:09 CEST 2004


I am experimenting with pycxx.  I want to expose STL vector for 
high-performance c++ algorithms.  The idea is to 1) create vectors in python, 
2) call C++ algorithms using them.

One problem so far, it looks like we have SeqBase<T>, but T has to be a python 
object.  It looks like we can't have SeqBase<double> for example.  So we 
could make

SeqBase<Py::Float>.

This is no good for my purpose.  I want my sequences to be compact and fast - 
just wrap std::vector<double>, for example.

Any ideas?



More information about the Cplusplus-sig mailing list