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":
# pass
#cppclass const_reverse_iterator(reverse_iterator):
# pass
deque()
deque(deque&)
deque(size_t)
deque(size_t, T&)
deque() nogil except +
deque(deque&) nogil except +
deque(size_t) nogil except +
deque(size_t, T&) nogil except +
#deque[input_iterator](input_iterator, input_iterator)
T& operator[](size_t) nogil
#deque& operator=(deque&)
......
......@@ -16,9 +16,9 @@ cdef extern from "<list>" namespace "std":
# pass
#cppclass const_reverse_iterator(reverse_iterator):
# pass
list()
list(list&)
list(size_t, T&)
list() nogil except +
list(list&) nogil except +
list(size_t, T&) nogil except +
#list operator=(list&)
bint operator==(list&, list&) nogil
bint operator!=(list&, list&) nogil
......
......@@ -18,8 +18,8 @@ cdef extern from "<map>" namespace "std":
# pass
#cppclass const_reverse_iterator(reverse_iterator):
# pass
map()
map(map&)
map() nogil except +
map(map&) nogil except +
#map(key_compare&)
U& operator[](T&) nogil
#map& operator=(map&)
......
cdef extern from "<queue>" namespace "std":
cdef cppclass queue[T]:
queue()
queue(queue&)
queue() nogil except +
queue(queue&) nogil except +
#queue(Container&)
T& back() nogil
bint empty() nogil
......@@ -10,8 +10,8 @@ cdef extern from "<queue>" namespace "std":
void push(T&) nogil
size_t size() nogil
cdef cppclass priority_queue[T]:
priority_queue()
priority_queue(priority_queue&)
priority_queue() nogil except +
priority_queue(priority_queue&) nogil except +
#priority_queue(Container&)
bint empty() nogil
void pop() nogil
......
......@@ -18,8 +18,8 @@ cdef extern from "<set>" namespace "std":
# pass
#cppclass const_reverse_iterator(reverse_iterator):
# pass
set() nogil
set(set&) nogil
set() nogil except +
set(set&) nogil except +
#set(key_compare&)
#set& operator=(set&)
bint operator==(set&, set&) nogil
......
cdef extern from "<stack>" namespace "std":
cdef cppclass stack[T]:
stack()
stack(stack&)
stack() nogil except +
stack(stack&) nogil except +
#stack(Container&)
bint empty() nogil
void pop() nogil
......
......@@ -5,12 +5,12 @@ cdef extern from "<string>" namespace "std":
size_t npos = -1
cdef cppclass string:
string()
string(char *)
string(char *, size_t)
string(string&)
string() nogil except +
string(char *) nogil except +
string(char *, size_t) nogil except +
string(string&) nogil except +
# 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* data() nogil
......
......@@ -2,9 +2,9 @@ cdef extern from "<utility>" namespace "std":
cdef cppclass pair[T, U]:
T first
U second
pair()
pair(pair&)
pair(T&, U&)
pair() nogil except +
pair(pair&) nogil except +
pair(T&, U&) nogil except +
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":
# pass
#cppclass const_reverse_iterator(reverse_iterator):
# pass
vector()
vector(vector&) nogil
vector(size_t) nogil
vector(size_t, T&) nogil
vector() nogil except +
vector(vector&) nogil except +
vector(size_t) nogil except +
vector(size_t, T&) nogil except +
#vector[input_iterator](input_iterator, input_iterator)
T& operator[](size_t) nogil
#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