summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/wrapping_CPlusPlus/function_templates.pyx
blob: 35d064fdd5ca535ec6cba611f402a466b5b295c9 (plain)
1
2
3
4
5
6
7
# distutils: language = c++

cdef extern from "<algorithm>" namespace "std":
    T max[T](T a, T b)

print(max[long](3, 4))
print(max(1.5, 2.5))  # simple template argument deduction