cdef extern from "<functional>" namespace "std" nogil:
cdef cppclass reference_wrapper[T]:
reference_wrapper()
reference_wrapper(T& ref)
reference_wrapper(T&&)
reference_wrapper(const reference_wrapper[T]&)
# reference_wrapper& operator=(const reference_wrapper& x)
# operator T& ()
T& get()
reference_wrapper[T] ref(T &t)
include "reference_wrapper.pxd"
def test():
cdef int a=2
cdef reference_wrapper[int] refa
refa = ref(a)
reference_wrapper[T] ref(T &t)
^
------------------------------------------------------------
reference_wrapper.pxd:11:23: unknown type in template argument