This documentation is automatically generated by online-judge-tools/verification-helper
#include "structure/heap/persistent-leftist-heap.hpp"
/**
* @brief Persistent-Leftist-Heap
*/
template< typename T, bool isMin = true >
struct PersistentLeftistHeap : LeftistHeap< T, isMin > {
using Node = typename LeftistHeap< T, isMin >::Node;
Node *clone(Node *t) override {
return new Node(*t);
}
};
#line 1 "structure/heap/persistent-leftist-heap.hpp"
/**
* @brief Persistent-Leftist-Heap
*/
template< typename T, bool isMin = true >
struct PersistentLeftistHeap : LeftistHeap< T, isMin > {
using Node = typename LeftistHeap< T, isMin >::Node;
Node *clone(Node *t) override {
return new Node(*t);
}
};