mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
14 lines
350 B
C++
14 lines
350 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
|