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