tags:

views:

9

answers:

1

In Boost::Interprocess "Creating maps in shared memory" section

there's a sample. In the sample, std::allocator is used with 2 params:

typedef allocator<ValueType, managed_shared_memory::segment_manager> 
         ShmemAllocator;

But standard allocator template is like that:

template < class T > class allocator;

So, how can it be?

Thanks.

A: 

A person in a forum helped me. Here's the answer: The allocator used in the sample is not std::allocator, it is boost::interprocess::allocator.

xyzt