charto / nbind

:sparkles: Magical headers that make your C++ library accessible from JavaScript :rocket:
MIT License
1.98k stars 119 forks source link

Iterator support? #142

Open borrrden opened 3 years ago

borrrden commented 3 years ago

I'm trying to wrap a class which makes use of C++ iterators, and would like to express this as a Javascript iterator. Is there any way to accomplish this using nbind (I don't think there are any macros for it) either via some manual workarounds directly mixing in NAPI, or via Javascript hacks after the fact?