/usr/share/swig/3.0.12/std
Edit: /usr/share/swig/3.0.12/std/std_map.i (3680B)
//
// std::map
//
%include
%include
%define %std_map_methods_common(map...)
%std_container_methods(map);
size_type erase(const key_type& x);
size_type count(const key_type& x) const;
#ifdef SWIG_EXPORT_ITERATOR_METHODS
%extend {
// %extend wrapper used for differing definitions of these methods introduced in C++11
void erase(iterator position) { $self->erase(position); }
void erase(iterator first, iterator last) { $self->erase(first, last); }
}
iterator find(const key_type& x);
iterator lower_bound(const key_type& x);
iterator upper_bound(const key_type& x);
#endif
%enddef
%define %std_map_methods(map...)
%std_map_methods_common(map);
#ifdef SWIG_EXPORT_ITERATOR_METHODS
// iterator insert(const value_type& x);
#endif
%enddef
// ------------------------------------------------------------------------
// std::map
//
// const declarations are used to guess the intent of the function being
// exported; therefore, the following rationale is applied:
//
// -- f(std::map), f(const std::map&):
// the parameter being read-only, either a sequence or a
// previously wrapped std::map can be passed.
// -- f(std::map&), f(std::map*):
// the parameter may be modified; therefore, only a wrapped std::map
// can be passed.
// -- std::map f(), const std::map& f():
// the map is returned by copy; therefore, a sequence of T:s
// is returned which is most easily used in other functions
// -- std::map& f(), std::map* f():
// the map is returned by reference; therefore, a wrapped std::map
// is returned
// -- const std::map* f(), f(const std::map*):
// for consistency, they expect and return a plain map pointer.
// ------------------------------------------------------------------------
%{
#include