File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ from libc.math cimport isnan
22
22
from libcpp.vector cimport vector
23
23
from libcpp.algorithm cimport pop_heap
24
24
from libcpp.algorithm cimport push_heap
25
+ from libcpp.stack cimport stack
25
26
from libcpp cimport bool
26
27
27
28
import struct
@@ -43,15 +44,6 @@ cdef extern from "numpy/arrayobject.h":
43
44
void * data, int flags, object obj)
44
45
int PyArray_SetBaseObject(cnp.ndarray arr, PyObject* obj)
45
46
46
- cdef extern from " <stack>" namespace " std" nogil:
47
- cdef cppclass stack[T]:
48
- ctypedef T value_type
49
- stack() except +
50
- bint empty()
51
- void pop()
52
- void push(T& ) except + # Raise c++ exception for bad_alloc -> MemoryError
53
- T& top()
54
-
55
47
# =============================================================================
56
48
# Types and constants
57
49
# =============================================================================
You can’t perform that action at this time.
0 commit comments