mixed_equal.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * mixed_equal.h
  3. *
  4. */
  5. #ifndef CONTAINERS_MIXED_EQUAL_H_
  6. #define CONTAINERS_MIXED_EQUAL_H_
  7. #include <roaring/containers/array.h>
  8. #include <roaring/containers/bitset.h>
  9. #include <roaring/containers/run.h>
  10. #ifdef __cplusplus
  11. extern "C" {
  12. namespace roaring {
  13. namespace internal {
  14. #endif
  15. /**
  16. * Return true if the two containers have the same content.
  17. */
  18. bool array_container_equal_bitset(const array_container_t* container1,
  19. const bitset_container_t* container2);
  20. /**
  21. * Return true if the two containers have the same content.
  22. */
  23. bool run_container_equals_array(const run_container_t* container1,
  24. const array_container_t* container2);
  25. /**
  26. * Return true if the two containers have the same content.
  27. */
  28. bool run_container_equals_bitset(const run_container_t* container1,
  29. const bitset_container_t* container2);
  30. #ifdef __cplusplus
  31. }
  32. }
  33. } // extern "C" { namespace roaring { namespace internal {
  34. #endif
  35. #endif /* CONTAINERS_MIXED_EQUAL_H_ */