Metall  v0.29
A persistent memory allocator for data-centric analytics
set.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_SET_HPP
7 #define METALL_CONTAINER_SET_HPP
8 
9 #include <functional>
10 
11 #include <boost/container/set.hpp>
12 
13 #include <metall/metall.hpp>
14 
15 namespace metall::container {
16 
18 template <class Key, class Compare = std::less<Key>,
19  class Allocator = manager::allocator_type<Key>>
20 using set = boost::container::set<Key, Compare, Allocator>;
21 
23 template <class Key, class Compare = std::less<Key>,
24  class Allocator = manager::allocator_type<Key>>
25 using multiset = boost::container::multiset<Key, Compare, Allocator>;
26 
27 } // namespace metall::container
28 
29 #endif // METALL_CONTAINER_SET_HPP
Namespace for Metall container.
boost::container::multiset< Key, Compare, Allocator > multiset
A multiset container that uses Metall as its default allocator.
Definition: set.hpp:25
boost::container::set< Key, Compare, Allocator > set
A set container that uses Metall as its default allocator.
Definition: set.hpp:20