I use SWIG to port a function that returns std::map in PHP.
In the PHP code, I need to iterate over the map elements.
The Thw SWIG library provides support for std::map using the std_map.i interface std_map.i , but only the following methods are wrapped:
clear() del($key) get($key) has_key($key) is_empty() set($key, $x) size()
How can I iterate over map elements? Should I extend the std_map.i file with some kind of wrappers for iterators and begin() and end() ?
c ++ php map swig
Highcommander4
source share