[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-cpp-sig
Subject:    [C++-sig] a working example of container_proxy?
From:       Václav_Šmilauer <eudoxos () arcig ! cz>
Date:       2010-07-13 15:47:55
Message-ID: 1279036075.13745.34.camel () flux
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic