Pass iterator to Lua

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Pass iterator to Lua

Stefan Schindler
Hello,

I want to export a std::map<const string, ...> to Lua. The map instance
exists at the C++ side and I'd like to iterate over all elements in a
Lua script, like:

for element in map do
  ...
end

Can I export iterators to the container to Lua or somethings similar?

Greetings,
Stefan.


------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user