mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
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:
@@ -14,8 +14,8 @@
|
||||
//[doc_unique_ptr
|
||||
#include <boost/interprocess/managed_mapped_file.hpp>
|
||||
#include <boost/interprocess/smart_ptr/unique_ptr.hpp>
|
||||
#include <boost/interprocess/containers/vector.hpp>
|
||||
#include <boost/interprocess/containers/list.hpp>
|
||||
#include <boost/container/vector.hpp>
|
||||
#include <boost/container/list.hpp>
|
||||
#include <boost/interprocess/allocators/allocator.hpp>
|
||||
#include <cassert>
|
||||
//<-
|
||||
@@ -38,12 +38,12 @@ struct MyType
|
||||
typedef managed_unique_ptr<MyType, managed_mapped_file>::type unique_ptr_type;
|
||||
|
||||
//Define containers of unique pointer. Unique pointer simplifies object management
|
||||
typedef vector
|
||||
typedef boost::container::vector
|
||||
< unique_ptr_type
|
||||
, allocator<unique_ptr_type, managed_mapped_file::segment_manager>
|
||||
> unique_ptr_vector_t;
|
||||
|
||||
typedef list
|
||||
typedef boost::container::list
|
||||
< unique_ptr_type
|
||||
, allocator<unique_ptr_type, managed_mapped_file::segment_manager>
|
||||
> unique_ptr_list_t;
|
||||
|
||||
Reference in New Issue
Block a user