Skip to content

Feature Request: bind_set #1711

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

Open
fwjavox opened this issue Mar 1, 2019 · 5 comments
Open

Feature Request: bind_set #1711

fwjavox opened this issue Mar 1, 2019 · 5 comments

Comments

@fwjavox
Copy link
Contributor

fwjavox commented Mar 1, 2019

There are already helper templates to create bindings for std::map and std::vector.
It would be great to have the same option for std::set.

@eacousineau
Copy link
Contributor

eacousineau commented Mar 8, 2019

BTW To fully clarify, this is for stl_bind.h - the type_caster for std::set<> already exists in stl.h.

(Didn't realize this myself until looking into it.)

@YannickJadoul
Copy link
Collaborator

Pull requests welcome, I guess! :-)

@beatmax
Copy link

beatmax commented Feb 22, 2021

Here is a starting point, probably plug and play for most cases:

https://gist.github.com/beatmax/fb77ecc8183d47725da2ec61bb7ee2f9

@bstaletic
Copy link
Collaborator

@beatmax That does look decent. Are you going to make a pull request?

@beatmax
Copy link

beatmax commented Feb 22, 2021

Not in the short term, I (or someone) have to add tests and handle special cases like bind_vector does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants