[C++-sig] [ vector | list ] indexing suite
roman.yakovenko at gmail.com
Tue Jun 20 13:56:20 CEST 2006
Hi. While working on adding support to pyplusplus for indexing suite,
I took a look on
I think that with a small change of code it is possible to make
to work with std::list. The change is simple: to replace operator
and iterator += ( Distance )
with std::advance( iterator, Distance ). I am almost sure that there
is no performance
penalties for this change.
What do you think? Am I missing some trivial reason why this change
could not be done?
I attach the modified file.
C++ Python language binding
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8335 bytes
Desc: not available
More information about the Cplusplus-sig