Hi,

I would like to wrap several std::vector containers using a proxy so
that changing an element like obj[3]=3 will propagate back to c++. I
found container_proxy in the indexing_suite v2 at
http://www.language-binding.net/pyplusplus/documentation/indexing_suite_v2.html.html?highlight=container_proxy#container_proxy

I spend a long time to find a working example of that (very nice and
handy) template on the web without success; and I admit I am lost in
reading its source, unable to figure it out myself.

Is there an example that shows a very simple case of wrapping e.g.
std::vector<int> using the proxy_container? I imagine it will be only a
few lines. Or can I get an example here?

Many thanks,

Václav

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to