Metall  v0.28
A persistent memory allocator for data-centric analytics
offset_ptr.hpp
Go to the documentation of this file.
1 // Copyright 2019 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_OFFSET_PTR_HPP
7 #define METALL_OFFSET_PTR_HPP
8 
9 #include <boost/interprocess/offset_ptr.hpp>
10 #include <boost/interprocess/detail/utilities.hpp>
11 
12 namespace metall {
13 
16 template <typename T>
17 using offset_ptr = boost::interprocess::offset_ptr<T>;
18 
20 using boost::interprocess::ipcdetail::to_raw_pointer;
21 } // namespace metall
22 
25 
26 #endif // METALL_OFFSET_PTR_HPP
The top level of namespace of Metall.
Definition: basic_manager.hpp:22
boost::interprocess::offset_ptr< T > offset_ptr
Holds an offset between the address pointing at and itself.
Definition: offset_ptr.hpp:17