mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
[ci-skip] docs
This commit is contained in:
parent
4094ba3e7a
commit
1e367ab80c
|
@ -13,6 +13,7 @@ Browse the various function and classes :doc:`Sol<../index>` utilizes to make yo
|
|||
table
|
||||
proxy
|
||||
containers
|
||||
nested
|
||||
as_table
|
||||
usertype
|
||||
simple_usertype
|
||||
|
|
|
@ -5,6 +5,8 @@ for handling ``std::vector/map/set`` and others
|
|||
|
||||
Sol2 automatically converts containers (detected using the ``sol::is_container<T>`` type trait, which simply looks for begin / end) to be a special kind of userdata with metatable on it. For Lua 5.2 and 5.3, this is extremely helpful as you can make typical containers behave like Lua tables without losing the actual container that they came from, as well as a small amount of indexing and other operations that behave properly given the table type.
|
||||
|
||||
If you need to deal with these things from Lua as tables, please consider :doc:`sol::as_table<as_table>` and :doc:`sol::nested<nested>`.
|
||||
|
||||
|
||||
a complete example
|
||||
------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user