1cdef extern from "<stack>" namespace "std":
2    cdef cppclass stack[T]:
3        stack() nogil except +
4        stack(stack&) nogil except +
5        #stack(Container&)
6        bint empty() nogil
7        void pop() nogil
8        void push(T&) nogil
9        size_t size() nogil
10        T& top() nogil
11