// Not needed, the operator[] is already providing bounds checking cl.def("at", (T& (Vector::*)(SizeType i)) &Vector::at, "access specified element with bounds checking");
Vector*seq=newVector(slicelength);
for(inti=0;i<slicelength;++i){
// Capacity, C++ style
(*seq)[i]=v[start];start+=step;
cl.def("max_size",&Vector::max_size,"returns the maximum possible number of elements");
// Not needed, the operator[] is already providing bounds checking cl.def("at", (T& (Vector::*)(SizeType i)) &Vector::at, "access specified element with bounds checking");
// Capacity, C++ style
cl.def("max_size",&Vector::max_size,"returns the maximum possible number of elements");