I think - looking at the documentation on embind that the answer is to use
value_object (and value_array). Please let me know if this is wrong.
Thanks,
Arnab
On Tuesday, November 24, 2015 at 3:19:15 PM UTC-8, arnab choudhury wrote:
>
> Hello there
>
> I was wondering if embind supports stack allocated C++ objects (rather
> than heap allocated)? This is for things like:
>
> for (auto pair : keyMap->GetKeyValuePairs())
> {
> // Do something
> }
>
> where keyMap could be a custom collection implementation and
> GetKeyValuePairs() would return a KeyValuePairIterator class. In C++, the
> iterator class would usually be stack allocated. I'm wondering how we can
> use embind to support collection iteration in JS.
>
> Thanks!
> -Arnab
>
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.