NVBIO
Main Page
Modules
Classes
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
contrib
priority-deque
priority_deque_verify.hpp
Go to the documentation of this file.
1
#ifndef PRIORITY_DEQUE_VERIFY_HPP_
2
#define PRIORITY_DEQUE_VERIFY_HPP_
3
4
#include "
priority_deque.hpp
"
5
#include "
interval_heap.hpp
"
6
7
// Thouroughly checks a priority deque for heap corruption and returns the
8
// first instance of corruption (or the end iterator if there is none).
9
// Note: Assumes comparison object is default-constructed.
10
template
<
typename
T,
typename
S,
typename
C>
11
typename
boost::container::priority_deque<T, S, C>::const_iterator
12
is_valid_until
(
const
boost::container::priority_deque<T, S, C>
& pd)
13
{
14
C
compare
;
15
return
boost::heap::is_interval_heap_until
(pd.
begin
(), pd.
end
(),
compare
);
16
}
17
18
19
20
#endif // PRIORITY_DEQUE_VERIFY_HPP_
Generated on Wed Feb 25 2015 08:32:50 for NVBIO by
1.8.4