utility.pxd 485 B

123456789101112131415
  1. cdef extern from "<utility>" namespace "std" nogil:
  2. cdef cppclass pair[T, U]:
  3. ctypedef T first_type
  4. ctypedef U second_type
  5. T first
  6. U second
  7. pair() except +
  8. pair(pair&) except +
  9. pair(T&, U&) except +
  10. bint operator==(pair&, pair&)
  11. bint operator!=(pair&, pair&)
  12. bint operator<(pair&, pair&)
  13. bint operator>(pair&, pair&)
  14. bint operator<=(pair&, pair&)
  15. bint operator>=(pair&, pair&)