12 lines
301 B
Cython
12 lines
301 B
Cython
|
cdef extern from "<stack>" namespace "std" nogil:
|
||
|
cdef cppclass stack[T]:
|
||
|
ctypedef T value_type
|
||
|
stack() except +
|
||
|
stack(stack&) except +
|
||
|
#stack(Container&)
|
||
|
bint empty()
|
||
|
void pop()
|
||
|
void push(T&) except +
|
||
|
size_t size()
|
||
|
T& top()
|