Ignore std::vector<T>::get_allocator()
This is not really useful in C wrappers and results in ugly descriptor for the allocator type appearing in the output, better to avoid it.
This commit is contained in:
parent
65d9cad1ca
commit
fe8c6fad44
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,9 @@
|
||||||
void set(size_type n, const value_type& val) { self->at(n) = val; }
|
void set(size_type n, const value_type& val) { self->at(n) = val; }
|
||||||
value_type get(size_type n) const { return self->at(n); }
|
value_type get(size_type n) const { return self->at(n); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Standard typemaps wrap get_allocator(), but it's not really useful for us, so don't bother with it.
|
||||||
|
%ignore get_allocator
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
%define %swig_vector_methods_val(Type...)
|
%define %swig_vector_methods_val(Type...)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue