Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support STL containers in Lua. #19

Open
1 of 18 tasks
Possseidon opened this issue Mar 3, 2021 · 0 comments
Open
1 of 18 tasks

Support STL containers in Lua. #19

Possseidon opened this issue Mar 3, 2021 · 0 comments
Assignees
Labels
dang-lua enhancement New feature or request

Comments

@Possseidon
Copy link
Owner

Possseidon commented Mar 3, 2021

Support STL containers in Lua.

Add ClassInfo specializations for all the STL containers.

Containers

Sequence containers

Should be one-indexed to stay consistent with Lua.

  • std::array
  • std::vector
  • std::deque
  • std::forward_list
  • std::list
  • std::initializer_list (not strictly a container)
  • std::span (C++20, also not strictly a container)

Associative containers

  • std::set
  • std::multiset
  • std::map
  • std::multimap

Unordered associative containers

  • std::unordered_set
  • std::unordered_multiset
  • std::unordered_map
  • std::unordered_multimap

Container adaptors

  • std::stack
  • std::queue
  • std::priority_queue

General functionality

Allow for conversion between Lua tables and varargs in various representations.

@Possseidon Possseidon added enhancement New feature or request dang-lua labels Mar 3, 2021
@Possseidon Possseidon self-assigned this Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dang-lua enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant