Metall v0.30
A persistent memory allocator for data-centric analytics
 
Loading...
Searching...
No Matches
priority_queue.hpp
Go to the documentation of this file.
1// Copyright 2020 Lawrence Livermore National Security, LLC and other Metall
2// Project Developers. See the top-level COPYRIGHT file for details.
3//
4// SPDX-License-Identifier: (Apache-2.0 OR MIT)
5
6#ifndef METALL_CONTAINER_PRIORITY_QUEUE_HPP
7#define METALL_CONTAINER_PRIORITY_QUEUE_HPP
8
9#include <queue>
10#include <functional>
11
13
14namespace metall::container {
15
17template <typename T, typename Container = vector<T>,
18 typename Compare = std::less<typename Container::value_type>>
19using priority_queue = std::priority_queue<T, Container>;
20
21} // namespace metall::container
22
23#endif // METALL_CONTAINER_PRIORITY_QUEUE_HPP
Namespace for Metall container.
std::priority_queue< T, Container > priority_queue
A priority_queue container that uses Metall as its default allocator.
Definition priority_queue.hpp:19