Deprecate boost/interprocess/containers/*.hpp header:

- Change all examples and test to include <boost/container/*>
- Update documentation, including current std library implementation portability regarding offset_ptr
This commit is contained in:
Ion Gaztañaga
2024-08-08 01:21:14 +02:00
parent b155bae46e
commit 25206e6332
47 changed files with 272 additions and 417 deletions

View File

@@ -9,8 +9,8 @@
//////////////////////////////////////////////////////////////////////////////
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/containers/list.hpp>
#include <boost/interprocess/containers/vector.hpp>
#include <boost/container/list.hpp>
#include <boost/container/vector.hpp>
#include <boost/interprocess/allocators/node_allocator.hpp>
#include "print_container.hpp"
#include "dummy_test_allocator.hpp"
@@ -42,12 +42,12 @@ template class ipcdetail::node_allocator_v1<void, managed_shared_memory::segment
}}}
//Alias list types
typedef list<int, shmem_node_allocator_t> MyShmList;
typedef list<int, shmem_node_allocator_v1_t> MyShmListV1;
typedef boost::container::list<int, shmem_node_allocator_t> MyShmList;
typedef boost::container::list<int, shmem_node_allocator_v1_t> MyShmListV1;
//Alias vector types
typedef vector<int, shmem_node_allocator_t> MyShmVector;
typedef vector<int, shmem_node_allocator_v1_t> MyShmVectorV1;
typedef boost::container::vector<int, shmem_node_allocator_t> MyShmVector;
typedef boost::container::vector<int, shmem_node_allocator_v1_t> MyShmVectorV1;
int main ()
{