Commit e2e92024 authored by Stefan Behnel's avatar Stefan Behnel

added 'except +' and 'nogil' declarations to shipped STL constructors

parent 3218a24e
...@@ -18,10 +18,10 @@ cdef extern from "<deque>" namespace "std": ...@@ -18,10 +18,10 @@ cdef extern from "<deque>" namespace "std":
# pass # pass
#cppclass const_reverse_iterator(reverse_iterator): #cppclass const_reverse_iterator(reverse_iterator):
# pass # pass
deque() deque() nogil except +
deque(deque&) deque(deque&) nogil except +
deque(size_t) deque(size_t) nogil except +
deque(size_t, T&) deque(size_t, T&) nogil except +
#deque[input_iterator](input_iterator, input_iterator) #deque[input_iterator](input_iterator, input_iterator)
T& operator[](size_t) nogil T& operator[](size_t) nogil
#deque& operator=(deque&) #deque& operator=(deque&)
......
...@@ -16,9 +16,9 @@ cdef extern from "<list>" namespace "std": ...@@ -16,9 +16,9 @@ cdef extern from "<list>" namespace "std":
# pass # pass
#cppclass const_reverse_iterator(reverse_iterator): #cppclass const_reverse_iterator(reverse_iterator):
# pass # pass
list() list() nogil except +
list(list&) list(list&) nogil except +
list(size_t, T&) list(size_t, T&) nogil except +
#list operator=(list&) #list operator=(list&)
bint operator==(list&, list&) nogil bint operator==(list&, list&) nogil
bint operator!=(list&, list&) nogil bint operator!=(list&, list&) nogil
......
...@@ -18,8 +18,8 @@ cdef extern from "<map>" namespace "std": ...@@ -18,8 +18,8 @@ cdef extern from "<map>" namespace "std":
# pass # pass
#cppclass const_reverse_iterator(reverse_iterator): #cppclass const_reverse_iterator(reverse_iterator):
# pass # pass
map() map() nogil except +
map(map&) map(map&) nogil except +
#map(key_compare&) #map(key_compare&)
U& operator[](T&) nogil U& operator[](T&) nogil
#map& operator=(map&) #map& operator=(map&)
......
cdef extern from "<queue>" namespace "std": cdef extern from "<queue>" namespace "std":
cdef cppclass queue[T]: cdef cppclass queue[T]:
queue() queue() nogil except +
queue(queue&) queue(queue&) nogil except +
#queue(Container&) #queue(Container&)
T& back() nogil T& back() nogil
bint empty() nogil bint empty() nogil
...@@ -10,8 +10,8 @@ cdef extern from "<queue>" namespace "std": ...@@ -10,8 +10,8 @@ cdef extern from "<queue>" namespace "std":
void push(T&) nogil void push(T&) nogil
size_t size() nogil size_t size() nogil
cdef cppclass priority_queue[T]: cdef cppclass priority_queue[T]:
priority_queue() priority_queue() nogil except +
priority_queue(priority_queue&) priority_queue(priority_queue&) nogil except +
#priority_queue(Container&) #priority_queue(Container&)
bint empty() nogil bint empty() nogil
void pop() nogil void pop() nogil
......
...@@ -18,8 +18,8 @@ cdef extern from "<set>" namespace "std": ...@@ -18,8 +18,8 @@ cdef extern from "<set>" namespace "std":
# pass # pass
#cppclass const_reverse_iterator(reverse_iterator): #cppclass const_reverse_iterator(reverse_iterator):
# pass # pass
set() nogil set() nogil except +
set(set&) nogil set(set&) nogil except +
#set(key_compare&) #set(key_compare&)
#set& operator=(set&) #set& operator=(set&)
bint operator==(set&, set&) nogil bint operator==(set&, set&) nogil
......
cdef extern from "<stack>" namespace "std": cdef extern from "<stack>" namespace "std":
cdef cppclass stack[T]: cdef cppclass stack[T]:
stack() stack() nogil except +
stack(stack&) stack(stack&) nogil except +
#stack(Container&) #stack(Container&)
bint empty() nogil bint empty() nogil
void pop() nogil void pop() nogil
......
...@@ -5,12 +5,12 @@ cdef extern from "<string>" namespace "std": ...@@ -5,12 +5,12 @@ cdef extern from "<string>" namespace "std":
size_t npos = -1 size_t npos = -1
cdef cppclass string: cdef cppclass string:
string() string() nogil except +
string(char *) string(char *) nogil except +
string(char *, size_t) string(char *, size_t) nogil except +
string(string&) string(string&) nogil except +
# as a string formed by a repetition of character c, n times. # as a string formed by a repetition of character c, n times.
string(size_t, char) string(size_t, char) nogil except +
const_char* c_str() nogil const_char* c_str() nogil
const_char* data() nogil const_char* data() nogil
......
...@@ -2,9 +2,9 @@ cdef extern from "<utility>" namespace "std": ...@@ -2,9 +2,9 @@ cdef extern from "<utility>" namespace "std":
cdef cppclass pair[T, U]: cdef cppclass pair[T, U]:
T first T first
U second U second
pair() pair() nogil except +
pair(pair&) pair(pair&) nogil except +
pair(T&, U&) pair(T&, U&) nogil except +
bint operator==(pair&, pair&) nogil bint operator==(pair&, pair&) nogil
bint operator!=(pair&, pair&) nogil bint operator!=(pair&, pair&) nogil
bint operator<(pair&, pair&) nogil bint operator<(pair&, pair&) nogil
......
...@@ -24,10 +24,10 @@ cdef extern from "<vector>" namespace "std": ...@@ -24,10 +24,10 @@ cdef extern from "<vector>" namespace "std":
# pass # pass
#cppclass const_reverse_iterator(reverse_iterator): #cppclass const_reverse_iterator(reverse_iterator):
# pass # pass
vector() vector() nogil except +
vector(vector&) nogil vector(vector&) nogil except +
vector(size_t) nogil vector(size_t) nogil except +
vector(size_t, T&) nogil vector(size_t, T&) nogil except +
#vector[input_iterator](input_iterator, input_iterator) #vector[input_iterator](input_iterator, input_iterator)
T& operator[](size_t) nogil T& operator[](size_t) nogil
#vector& operator=(vector&) #vector& operator=(vector&)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment