Skip to content

Instantly share code, notes, and snippets.

@messense
Created May 10, 2020 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save messense/53d627e5bde84708fabada869d36ec89 to your computer and use it in GitHub Desktop.
Save messense/53d627e5bde84708fabada869d36ec89 to your computer and use it in GitHub Desktop.
absl.pxd v.s. unordered_map.pxd
1c1
< from .utility cimport pair
---
> from libcpp.utility cimport pair
3,4c3,4
< cdef extern from "<unordered_map>" namespace "std" nogil:
< cdef cppclass unordered_map[T, U]:
---
> cdef extern from "absl/container/flat_hash_map.h" namespace "absl" nogil:
> cdef cppclass flat_hash_map[T, U]:
24,26c24,26
< unordered_map() except +
< unordered_map(unordered_map&) except +
< #unordered_map(key_compare&)
---
> flat_hash_map() except +
> flat_hash_map(flat_hash_map&) except +
> #flat_hash_map(key_compare&)
28,34c28,34
< #unordered_map& operator=(unordered_map&)
< bint operator==(unordered_map&, unordered_map&)
< bint operator!=(unordered_map&, unordered_map&)
< bint operator<(unordered_map&, unordered_map&)
< bint operator>(unordered_map&, unordered_map&)
< bint operator<=(unordered_map&, unordered_map&)
< bint operator>=(unordered_map&, unordered_map&)
---
> #flat_hash_map& operator=(flat_hash_map&)
> bint operator==(flat_hash_map&, flat_hash_map&)
> bint operator!=(flat_hash_map&, flat_hash_map&)
> bint operator<(flat_hash_map&, flat_hash_map&)
> bint operator>(flat_hash_map&, flat_hash_map&)
> bint operator<=(flat_hash_map&, flat_hash_map&)
> bint operator>=(flat_hash_map&, flat_hash_map&)
46,47c46,47
< iterator erase(iterator)
< iterator erase(iterator, iterator)
---
> void erase(iterator)
> void erase(iterator, iterator)
63c63
< void swap(unordered_map&)
---
> void swap(flat_hash_map&)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment