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:
Luigi Ballabio 2003-03-11 15:38:02 +00:00
commit 03658fcb4c
6 changed files with 95 additions and 134 deletions

View file

@ -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));
}
}
}