mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 16:22:19 +00:00
Updated Interprocess and Intrusive:
-> Added linear slist to intrusive -> Updated all allocators to version 2 allocators in Interprocess -> Optimized rbtree_best_fit size overhead to 1 std:size_t. [SVN r42878]
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include "dummy_test_allocator.hpp"
|
||||
#include "movable_int.hpp"
|
||||
#include "list_test.hpp"
|
||||
#include "vector_test.hpp"
|
||||
|
||||
using namespace boost::interprocess;
|
||||
|
||||
@@ -23,15 +24,31 @@ using namespace boost::interprocess;
|
||||
//Alias a integer node allocator type
|
||||
typedef node_allocator
|
||||
<int, managed_shared_memory::segment_manager> shmem_node_allocator_t;
|
||||
typedef detail::node_allocator_v1
|
||||
<int, managed_shared_memory::segment_manager> shmem_node_allocator_v1_t;
|
||||
|
||||
//Explicit instantiations to catch compilation errors
|
||||
template class node_allocator<int, managed_shared_memory::segment_manager>;
|
||||
template class detail::node_allocator_v1<int, managed_shared_memory::segment_manager>;
|
||||
|
||||
//Alias list types
|
||||
typedef list<int, shmem_node_allocator_t> MyShmList;
|
||||
typedef 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;
|
||||
|
||||
int main ()
|
||||
{
|
||||
if(test::list_test<managed_shared_memory, MyShmList, true>())
|
||||
return 1;
|
||||
|
||||
if(test::list_test<managed_shared_memory, MyShmListV1, true>())
|
||||
return 1;
|
||||
if(test::vector_test<managed_shared_memory, MyShmVector>())
|
||||
return 1;
|
||||
if(test::vector_test<managed_shared_memory, MyShmVectorV1>())
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user