ADS
Algorithms and Data Structures
Toggle main menu visibility
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
50
#include "
ADS/priority/PriorityQueue.h
"
51
52
#include <boost/heap/policies.hpp>
53
54
#include <concepts>
55
56
/*--------------------------------------------------------------------------*/
57
/*--------------------------- NAMESPACE ------------------------------------*/
58
/*--------------------------------------------------------------------------*/
59
60
namespace
boost::heap
61
{
62
69
template
<
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
}
76
void
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
/*--------------------------------------------------------------------------*/
PriorityQueue.h
The PRIORITYQUEUE of section 10.1, with decreasing priority, in two concepts.
ADS::queue_decrease
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
ADS
interop
boost
Heap.h
Generated by
1.17.0