Keaton vector operations

How can I use the remove function from <algorithm> ? (Or any other operation, I want to use it with vectors, I tried cdef extern to declare it, but there is no template function yet, I think)

+6
source share
1 answer

Cython can only intelligently reference compiled code in some external library following C-calling conventions. To use the template functions, you need to write an extern "C" wrapper function that uses a specific algorithm incarnation (that is, you must fix the template parameters).

+6
source

Source: https://habr.com/ru/post/902548/


All Articles