| 1 | #include "boost/heap/pairing_heap.hpp"
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 | struct ordering {
|
|---|
| 5 | ordering(int) {}
|
|---|
| 6 | bool operator()(int a, int b) const {
|
|---|
| 7 | return a < b;
|
|---|
| 8 | }
|
|---|
| 9 | };
|
|---|
| 10 |
|
|---|
| 11 | int main() {
|
|---|
| 12 | boost::heap::pairing_heap<int, boost::heap::compare<ordering> >
|
|---|
| 13 | q(ordering(0));
|
|---|
| 14 | q.end();
|
|---|
| 15 | }
|
|---|