Pass iterator to Lua

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

Pass iterator to Lua

Stefan Schindler

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

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


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!
luabind-user mailing list
[hidden email]