std::map ready for prime time (hopefully)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8c56544ee3
commit
03658fcb4c
6 changed files with 95 additions and 134 deletions
|
|
@ -203,10 +203,10 @@ namespace std {
|
|||
throw std::out_of_range("vector index out of range");
|
||||
}
|
||||
void each() {
|
||||
swig_type_info* type = SWIG_TypeQuery(#T " *");
|
||||
for (unsigned int i=0; i<self->size(); i++) {
|
||||
T* x = &((*self)[i]);
|
||||
rb_yield(SWIG_NewPointerObj((void *) x, type, 0));
|
||||
rb_yield(SWIG_NewPointerObj((void *) x,
|
||||
$descriptor(T *), 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue