minor rewrite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11154 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
956c57bb03
commit
df698a8d32
1 changed files with 4 additions and 9 deletions
|
|
@ -365,20 +365,15 @@ namespace std {
|
||||||
template<class T> class vector<const T*> {
|
template<class T> class vector<const T*> {
|
||||||
SWIG_STD_VECTOR_MINIMUM(T, const T*)
|
SWIG_STD_VECTOR_MINIMUM(T, const T*)
|
||||||
};
|
};
|
||||||
}
|
// bool is a bit different in the C++ standard
|
||||||
|
|
||||||
// template specializations for std::vector
|
|
||||||
// these provide extra collections methods as operator== is defined
|
|
||||||
|
|
||||||
// extra specialization for bool
|
|
||||||
namespace std {
|
|
||||||
template<> class vector<bool> {
|
template<> class vector<bool> {
|
||||||
SWIG_STD_VECTOR_MINIMUM_INTERNAL(bool, bool, bool)
|
SWIG_STD_VECTOR_MINIMUM_INTERNAL(bool, bool, bool)
|
||||||
SWIG_STD_VECTOR_EXTRA_OP_EQUALS_EQUALS(bool, bool)
|
SWIG_STD_VECTOR_EXTRA_OP_EQUALS_EQUALS(bool, bool)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// primitive types specialization
|
// template specializations for std::vector
|
||||||
|
// these provide extra collections methods as operator== is defined
|
||||||
SWIG_STD_VECTOR_SPECIALIZE(char, char)
|
SWIG_STD_VECTOR_SPECIALIZE(char, char)
|
||||||
SWIG_STD_VECTOR_SPECIALIZE(sbyte, signed char)
|
SWIG_STD_VECTOR_SPECIALIZE(sbyte, signed char)
|
||||||
SWIG_STD_VECTOR_SPECIALIZE(byte, unsigned char)
|
SWIG_STD_VECTOR_SPECIALIZE(byte, unsigned char)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue