ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
Heap.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/*------------------------------ File Heap.h -------------------------------*/
3/*--------------------------------------------------------------------------*/
36/*--------------------------------------------------------------------------*/
37/*----------------------------- DEFINITIONS --------------------------------*/
38/*--------------------------------------------------------------------------*/
39
40#ifndef __ADS_interop_boost_Heap
41 #define __ADS_interop_boost_Heap
42/* self-identification: #endif constant */
43
44#if defined( ADS_WITH_BOOST )
45
46/*--------------------------------------------------------------------------*/
47/*------------------------------ INCLUDES ----------------------------------*/
48/*--------------------------------------------------------------------------*/
49
51
52#include <boost/heap/policies.hpp>
53
54#include <concepts>
55
56/*--------------------------------------------------------------------------*/
57/*--------------------------- NAMESPACE ------------------------------------*/
58/*--------------------------------------------------------------------------*/
59
60namespace boost::heap
61{
62
69template< class H >
70 requires requires( H & q , typename H::handle_type h ,
71 const typename H::value_type & p )
72{
73 { q.push( p ) } -> std::same_as< typename H::handle_type >;
74 q.increase( h , p );
75 }
76void queue_decrease( H & q , typename H::handle_type h ,
77 const typename H::value_type & p )
78{
79 q.increase( h , p );
80 }
81
82} // end( namespace boost::heap )
83
84#endif /* ADS_WITH_BOOST */
85
86/*--------------------------------------------------------------------------*/
87
88#endif /* Heap.h included */
89
90/*--------------------------------------------------------------------------*/
91/*----------------------------- End File Heap.h ----------------------------*/
92/*--------------------------------------------------------------------------*/
The PRIORITYQUEUE of section 10.1, with decreasing priority, in two concepts.
constexpr detail::QueueDecrease queue_decrease
the priority of the item of the handle of lowered to , i.e., the item moved toward the minimum: q....
Definition QueueCustomization.h:295