diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2023-04-26 21:44:34 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2023-04-26 21:44:34 +0100 |
commit | 00d3b04b46e1b8a58fbf77fd377133fee816ae5a (patch) | |
tree | 21d1bb52989f1ab1da060717893462fdfa886f6a /Lib/python/std_multiset.i | |
parent | ca748cfe571fefad218b885894853ca1ade09377 (diff) | |
parent | 3a2318cb579edb3d1545210911b0058563521e3d (diff) | |
download | swig-00d3b04b46e1b8a58fbf77fd377133fee816ae5a.tar.gz |
Merge branch 'python-iterator-protocol'
* python-iterator-protocol:
Finish removal of SwigPySequence_Cont
Remove undocumented and non-existent STL std::carray
Remove assign method uses by the removed Python Sequence Protocol
Remove now redundant use of Python Sequence protocol in STL wrappers
Add support for all STL containers to be constructible from a Python set
Iterator Protocol support for std::array wrappers
STL support for copying Python objects supporting Iterator protocol
Closes #2515
Conflicts:
CHANGES.current
Diffstat (limited to 'Lib/python/std_multiset.i')
-rw-r--r-- | Lib/python/std_multiset.i | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/python/std_multiset.i b/Lib/python/std_multiset.i index ac430334c..b79f64e5a 100644 --- a/Lib/python/std_multiset.i +++ b/Lib/python/std_multiset.i @@ -7,17 +7,6 @@ %fragment("StdMultisetTraits","header",fragment="StdSequenceTraits") %{ namespace swig { - template <class SwigPySeq, class T> - inline void - assign(const SwigPySeq& swigpyseq, std::multiset<T>* seq) { - // seq->insert(swigpyseq.begin(), swigpyseq.end()); // not used as not always implemented - typedef typename SwigPySeq::value_type value_type; - typename SwigPySeq::const_iterator it = swigpyseq.begin(); - for (;it != swigpyseq.end(); ++it) { - seq->insert(seq->end(),(value_type)(*it)); - } - } - template <class T> struct traits_asptr<std::multiset<T> > { static int asptr(PyObject *obj, std::multiset<T> **m) { |