[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: pair()-like iterator in C++
- From: "Ken Smith" <kgsmith@...>
- Date: Mon, 30 Apr 2007 17:29:49 -0700
I have a function in C++ that is exposed to Lua which takes a table
argument whose keys and values are all strings. I'd like to convert
this into a std::map<std::string, std::string> but am having a hard
time coming up with a way to iterate over all the key-value pairs
using the C interface. Any ideas?
If you're any good at what you do, it'll make you miserable.