[buddy] Add a default_deleter for bddPair

* src/bddx.h (std::default_deleter<bddPair>): Here.
This commit is contained in:
Alexandre Duret-Lutz 2022-10-25 11:52:03 +02:00
parent 0ba6949f7d
commit 0ecc870a0e

View file

@ -501,6 +501,7 @@ BUDDY_API_VAR const BDD bddtrue;
*************************************************************************/
#ifdef CPLUSPLUS
#include <iostream>
#include <memory>
/*=== User BDD class ===================================================*/
@ -1092,6 +1093,11 @@ inline bddxfalse bdd_false(void)
{ return bddxfalse(); }
template<>
struct std::default_delete<bddPair> {
void operator()(bddPair *p) const { bdd_freepair(p); };
};
/*=== Iostream printing ================================================*/
class BUDDY_API bdd_ioformat