Removed decr-- Hash tables feature.
Added some comments. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11569 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a3e59636ce
commit
52149e219d
5 changed files with 22 additions and 0 deletions
|
|
@ -226,6 +226,9 @@ namespace swig {
|
||||||
|
|
||||||
SwigPyIterator *decr(size_t n = 1)
|
SwigPyIterator *decr(size_t n = 1)
|
||||||
{
|
{
|
||||||
|
while (n--) {
|
||||||
|
--base::current;
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -274,6 +277,13 @@ namespace swig {
|
||||||
|
|
||||||
SwigPyIterator *decr(size_t n = 1)
|
SwigPyIterator *decr(size_t n = 1)
|
||||||
{
|
{
|
||||||
|
while (n--) {
|
||||||
|
if (base::current == begin) {
|
||||||
|
throw stop_iteration();
|
||||||
|
} else {
|
||||||
|
--base::current;
|
||||||
|
}
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
//
|
//
|
||||||
// std::unordered_map
|
// std::unordered_map
|
||||||
|
// Work in progress - the code is not compilable yet:
|
||||||
|
// operator--() and constructor(compare function) not available for unordered_
|
||||||
|
// types
|
||||||
//
|
//
|
||||||
|
|
||||||
%include <std_pair.i>
|
%include <std_pair.i>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
//
|
//
|
||||||
// std::unordered_multimap
|
// std::unordered_multimap
|
||||||
|
// Work in progress - the code is not compilable yet:
|
||||||
|
// operator--() and constructor(compare function) not available for unordered_
|
||||||
|
// types
|
||||||
//
|
//
|
||||||
|
|
||||||
%include <std_unordered_map.i>
|
%include <std_unordered_map.i>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
//
|
//
|
||||||
// std::unordered_multiset
|
// std::unordered_multiset
|
||||||
|
// Work in progress - the code is not compilable yet:
|
||||||
|
// operator--() and constructor(compare function) not available for unordered_
|
||||||
|
// types
|
||||||
//
|
//
|
||||||
|
|
||||||
%include <std_unordered_set.i>
|
%include <std_unordered_set.i>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
//
|
//
|
||||||
// std::unordered_set
|
// std::unordered_set
|
||||||
|
// Work in progress - the code is not compilable yet:
|
||||||
|
// operator--() and constructor(compare function) not available for unordered_
|
||||||
|
// types
|
||||||
//
|
//
|
||||||
|
|
||||||
%include <std_container.i>
|
%include <std_container.i>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue