Python std::unordered_set tidy up and additional testing
This commit is contained in:
parent
72ccea5080
commit
631e26ae48
2 changed files with 4 additions and 3 deletions
|
|
@ -49,7 +49,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
%extend {
|
||||
%extend {
|
||||
void append(value_type x) {
|
||||
self->insert(x);
|
||||
}
|
||||
|
|
@ -61,8 +61,7 @@
|
|||
value_type __getitem__(difference_type i) const throw (std::out_of_range) {
|
||||
return *(swig::cgetpos(self, i));
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
%enddef
|
||||
|
||||
%include <std/std_unordered_set.i>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue