summaryrefslogtreecommitdiff
path: root/Lib/csharp/std_vector.i
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2006-02-08 22:23:03 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2006-02-08 22:23:03 +0000
commit0b37423ca16d8a1c1074d2133b9dc48de26e9b6b (patch)
tree4aba6322917f12eb643d769bcf65bcb03f71ffbe /Lib/csharp/std_vector.i
parentceaeb49a9f3dcc56bf6090721aa3fa35c8324706 (diff)
downloadswig-0b37423ca16d8a1c1074d2133b9dc48de26e9b6b.tar.gz
Add in specialization for pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/csharp/std_vector.i')
-rwxr-xr-xLib/csharp/std_vector.i7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/csharp/std_vector.i b/Lib/csharp/std_vector.i
index 9ec8ad060..d18ff6504 100755
--- a/Lib/csharp/std_vector.i
+++ b/Lib/csharp/std_vector.i
@@ -348,6 +348,13 @@ namespace std {
template<class T> class vector {
SWIG_STD_VECTOR_MINIMUM(T, T)
};
+ // specializations for pointers
+ template<class T> class vector<T*> {
+ SWIG_STD_VECTOR_MINIMUM(T, T*)
+ };
+ template<class T> class vector<const T*> {
+ SWIG_STD_VECTOR_MINIMUM(T, const T*)
+ };
}
// template specializations for std::vector