Skip to content

STL container support in embind! #23628

@brinkqiang

Description

@brinkqiang

Why doesn't emsdk natively support STL containers? Why do users still need to manually register them, like register_vector("vector");?

Both pybind11 (Python) and sol2 (Lua) provide perfect support for STL containers.
Wouldn't it be possible to automatically register containers like vector by detecting parameter or return types during function registration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions