43#ifndef __ADS_PriorityQueue
44 #define __ADS_PriorityQueue
76template<
class Q ,
class... A >
77concept queue_insertable =
85 (
requires {
typename Q::Priority; } &&
86 queue_insertable< Q , typename Q::Priority > ) ||
88{
typename Q::Key; } &&
89 ( queue_insertable< Q , typename Q::Key > ||
90 queue_insertable< Q , typename Q::Key , typename Q::Key > )) ||
91 queue_insertable< Q >;
105 { cq.empty() } -> std::convertible_to< bool >;
106 {
ADS::queue_min( q ) } -> std::convertible_to< queue_item_t< Q > >;
108 } && detail::queue_keys< Q >;
117 requires( Q q ,
const Q cq ,
const typename Q::Item & x ,
118 const typename Q::Priority & p ,
typename Q::Handle y )
120 { cq.empty() } -> std::same_as< bool >;
121 { cq.min() } -> std::convertible_to< typename Q::Item >;
122 { q.deleteMin() } -> std::convertible_to< typename Q::Item >;
123 { q.insert( x , p ) } -> std::same_as< typename Q::Handle >;
The access to the priority queues of the two concepts of section 10.1, whose definitions are in Prior...
the PRIORITYQUEUE of section 10.1 with handles and decreasing priority: the types Item,...
Definition PriorityQueue.h:115
the PRIORITYQUEUE of section 10.1 without handles: the type of the items (Item or value_type),...
Definition PriorityQueue.h:102
constexpr detail::QueueDeleteMin queue_deleteMin
the item of smallest priority of , removed: q.deleteMin(), else queue_deleteMin( q ) found by ADL,...
Definition QueueCustomization.h:279
constexpr detail::QueueMin queue_min
the item of smallest priority of : q.min(), else queue_min( q ) found by ADL, else q....
Definition QueueCustomization.h:255
typename detail::queue_item< Q >::type queue_item_t
the items of the queue Q: Q::Item, else Q::value_type
Definition QueueCustomization.h:93
constexpr detail::QueueInsert queue_insert
inserted in with the keys of its order: q.insert( x , a... ), else queue_insert( q ,...
Definition QueueCustomization.h:284