mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
13 lines
349 B
C++
13 lines
349 B
C++
|
#pragma once
|
||
|
|
||
|
#include <queue>
|
||
|
#include <vector>
|
||
|
|
||
|
namespace llarp::util
|
||
|
{
|
||
|
/// priority queue that uses operator > instead of operator <
|
||
|
template <typename T, typename Container = std::vector<T>>
|
||
|
using ascending_priority_queue =
|
||
|
std::priority_queue<T, Container, std::greater<typename Container::value_type>>;
|
||
|
} // namespace llarp::util
|