CxxWrap.jl icon indicating copy to clipboard operation
CxxWrap.jl copied to clipboard

Support for std::unordered_map

Open alhirzel opened this issue 4 years ago • 2 comments

What would the process look like for adding support for std::unordered_map? I think it could map nicely onto a Dict.

alhirzel avatar Jan 28 '20 18:01 alhirzel

You need to add a new type to the libcxxwrap-julia STL library, here is an example diff of what was needed for std::valarray: https://github.com/JuliaInterop/libcxxwrap-julia/commit/47a760fab8a03551fb06c785a0d98280e89a151f

And then the Julia interface is best implemented on the Julia side, mainly in the StdLib.jl file: https://github.com/JuliaInterop/CxxWrap.jl/commit/2e522bb9826fd41243f4e2862395dfff288b9bdb

barche avatar Jan 28 '20 21:01 barche

See also https://github.com/JuliaInterop/libcxxwrap-julia/issues/88.

eschnett avatar Jul 29 '21 17:07 eschnett