rustsat-cadical 0.7.5

Interface to the SAT solver CaDiCaL for the RustSAT library.
Documentation
#ifndef _reap_h_INCLUDED
#define _reap_h_INCLUDED

#include <cstddef>
#include <vector>

class Reap {
public:
  Reap ();
  void init ();
  void release ();
  inline bool empty () { return !num_elements; }

  inline size_t size () { return num_elements; }

  void push (unsigned);
  void clear ();
  unsigned pop ();

private:
  size_t num_elements;
  unsigned last_deleted;
  unsigned min_bucket;
  unsigned max_bucket;
  std::vector<unsigned> buckets[33];
};

#endif