41 #ifndef PB_DS_PRIORITY_QUEUE_BASE_DS_DISPATCHER_HPP
42 #define PB_DS_PRIORITY_QUEUE_BASE_DS_DISPATCHER_HPP
44 #include <ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp>
45 #include <ext/pb_ds/detail/binomial_heap_/binomial_heap_.hpp>
46 #include <ext/pb_ds/detail/rc_binomial_heap_/rc_binomial_heap_.hpp>
47 #include <ext/pb_ds/detail/binary_heap_/binary_heap_.hpp>
48 #include <ext/pb_ds/detail/thin_heap_/thin_heap_.hpp>
55 template<
typename Value_Type,
typename Cmp_Fn,
typename Tag,
typename Allocator>
56 struct priority_queue_base_dispatch;
58 template<
typename Value_Type,
typename Cmp_Fn,
typename Allocator>
59 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, pairing_heap_tag, Allocator>
61 typedef pairing_heap_< Value_Type, Cmp_Fn, Allocator> type;
64 template<
typename Value_Type,
typename Cmp_Fn,
typename Allocator>
65 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, binomial_heap_tag, Allocator>
67 typedef binomial_heap_< Value_Type, Cmp_Fn, Allocator> type;
70 template<
typename Value_Type,
typename Cmp_Fn,
typename Allocator>
71 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, rc_binomial_heap_tag, Allocator>
73 typedef rc_binomial_heap_< Value_Type, Cmp_Fn, Allocator> type;
76 template<
typename Value_Type,
typename Cmp_Fn,
typename Allocator>
77 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, binary_heap_tag, Allocator>
79 typedef binary_heap_< Value_Type, Cmp_Fn, Allocator> type;
82 template<
typename Value_Type,
typename Cmp_Fn,
typename Allocator>
83 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, thin_heap_tag, Allocator>
85 typedef thin_heap_< Value_Type, Cmp_Fn, Allocator> type;
91 #endif // #ifndef PB_DS_PRIORITY_QUEUE_BASE_DS_DISPATCHER_HPP