Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Side by Side Diff: swig/Lib/python/std_multiset.i

Issue 553095: Checkin swig binaries for win, linux and Mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « swig/Lib/python/std_multimap.i ('k') | swig/Lib/python/std_pair.i » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 Multisets
3 */
4
5 %include <std_set.i>
6
7 %fragment("StdMultisetTraits","header",fragment="StdSequenceTraits")
8 %{
9 namespace swig {
10 template <class SwigPySeq, class T>
11 inline void
12 assign(const SwigPySeq& swigpyseq, std::multiset<T>* seq) {
13 // seq->insert(swigpyseq.begin(), swigpyseq.end()); // not used as not alw ays implemented
14 typedef typename SwigPySeq::value_type value_type;
15 typename SwigPySeq::const_iterator it = swigpyseq.begin();
16 for (;it != swigpyseq.end(); ++it) {
17 seq->insert(seq->end(),(value_type)(*it));
18 }
19 }
20
21 template <class T>
22 struct traits_asptr<std::multiset<T> > {
23 static int asptr(PyObject *obj, std::multiset<T> **m) {
24 return traits_asptr_stdseq<std::multiset<T> >::asptr(obj, m);
25 }
26 };
27
28 template <class T>
29 struct traits_from<std::multiset<T> > {
30 static PyObject *from(const std::multiset<T>& vec) {
31 return traits_from_stdseq<std::multiset<T> >::from(vec);
32 }
33 };
34 }
35 %}
36
37 #define %swig_multiset_methods(Set...) %swig_set_methods(Set)
38
39
40
41 %include <std/std_multiset.i>
OLDNEW
« no previous file with comments | « swig/Lib/python/std_multimap.i ('k') | swig/Lib/python/std_pair.i » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698