summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/wrapping_CPlusPlus/function_templates.pyx
blob: 13c75426e846f3d2d7f3dc3bb6cbd99d53a1ec4f (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