Are there any stl implementations for lua? I understand we can use table instead of the stl facilities when programming in lua,but it is really not friendly to be used,so I am wondering the stl implementations in lua,especially the vector,map,list,set.
1 Answer
A library exists to use C++ containers in Lua. See :
But you can also use containers written in pure Lua :
People in comments recommend you to use the Lua table structure as you need. If you need only simple data types and algorithms (for instance set with insertion, removal and test), you should. But if you need more complex algorithms, these libraries are a good choice.
true
) as values.