more fixes for template + def args
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e4cdbbfaef
commit
b8ae49d52d
17 changed files with 203 additions and 284 deletions
|
|
@ -1,5 +1,6 @@
|
|||
%include <std_common.i>
|
||||
%include <exception.i>
|
||||
%include <std_alloc.i>
|
||||
|
||||
%{
|
||||
#include <algorithm>
|
||||
|
|
@ -7,7 +8,7 @@
|
|||
|
||||
// Common container methods
|
||||
|
||||
%define %std_container_methods(container)
|
||||
%define %std_container_methods(container...)
|
||||
container();
|
||||
container(const container&);
|
||||
|
||||
|
|
@ -17,6 +18,8 @@
|
|||
|
||||
void swap(container& v);
|
||||
|
||||
allocator_type get_allocator() const;
|
||||
|
||||
#ifdef SWIG_EXPORT_ITERATOR_METHODS
|
||||
iterator begin();
|
||||
const_iterator begin() const;
|
||||
|
|
@ -34,7 +37,7 @@
|
|||
|
||||
%define %std_sequence_methods_common(sequence)
|
||||
|
||||
%std_container_methods(SWIG_arg(sequence));
|
||||
%std_container_methods(SWIG_arg(sequence));
|
||||
|
||||
sequence(size_type size);
|
||||
void pop_back();
|
||||
|
|
@ -71,7 +74,7 @@
|
|||
|
||||
%enddef
|
||||
|
||||
%define %std_sequence_methods_val(sequence)
|
||||
%define %std_sequence_methods_val(sequence...)
|
||||
|
||||
%std_sequence_methods_common(SWIG_arg(sequence));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue