Vcsn  2.8
Be Rational
fibonacci_heap.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <boost/heap/fibonacci_heap.hpp>
4 
5 namespace vcsn
6 {
7  namespace detail
8  {
13  template <typename Elt>
14  struct greater
15  {
16  bool operator()(const Elt& lhs, const Elt& rhs) const
17  {
18  return rhs < lhs;
19  }
20  };
21 
22  template <typename Elt>
23  using comparator_t = boost::heap::compare<detail::greater<Elt>>;
24  }
25 
26  template <typename Elt>
27  using min_fibonacci_heap
28  = boost::heap::fibonacci_heap<Elt, detail::comparator_t<Elt>>;
29 
30  template <typename Elt>
31  using max_fibonacci_heap = boost::heap::fibonacci_heap<Elt>;
32 }
boost::heap::fibonacci_heap< Elt > max_fibonacci_heap
Comparison functor.
bool operator()(const Elt &lhs, const Elt &rhs) const
Definition: a-star.hh:8
boost::heap::fibonacci_heap< Elt, detail::comparator_t< Elt > > min_fibonacci_heap
boost::heap::compare< detail::greater< Elt > > comparator_t