[C++-sig] problem exposing iterators

abhi.sri45 abhishek.srivastava at nechclst.in
Fri Jun 18 07:54:46 CEST 2010


Although for this case I can think of a workable solution, to create some
kind of wrapper functions(only in bindings) which return *iterator by
adding: 

classB = mb.class_( 'B' )
classB.add_declaration_code("A getA( B& b ){ vector< A >::iterator iter =
b.begin(); return *iter ;}")
classB.add_registration_code( 'def( "begin", &::getA )' , works_on_instance
= True)

in codeGenerator scripts. 
But can I get some kind of solution where I can expose iterators(some kind
of support available for iterators). 

With Regards,
Abhishek Srivastava
  




-- 
View this message in context: http://old.nabble.com/problem-exposing-iterators-tp28912265p28922372.html
Sent from the Python - c++-sig mailing list archive at Nabble.com.



More information about the Cplusplus-sig mailing list