diff options
Diffstat (limited to 'libs/interprocess/example/doc_cont.cpp')
-rw-r--r-- | libs/interprocess/example/doc_cont.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/interprocess/example/doc_cont.cpp b/libs/interprocess/example/doc_cont.cpp index e419923150..f6099228fe 100644 --- a/libs/interprocess/example/doc_cont.cpp +++ b/libs/interprocess/example/doc_cont.cpp @@ -54,7 +54,7 @@ int main () //-> //Alias an STL-like allocator of ints that allocates ints from the segment - typedef allocator<int, managed_shared_memory::segment_manager> + typedef allocator<int, managed_shared_memory::segment_manager> ShmemAllocator; //Alias a vector that uses the previous STL-like allocator @@ -67,14 +67,14 @@ int main () //Initialize the STL-like allocator const ShmemAllocator alloc_inst (segment.get_segment_manager()); - //Construct the vector in the shared memory segment with the STL-like allocator + //Construct the vector in the shared memory segment with the STL-like allocator //from a range of iterators - MyVector *myvector = + MyVector *myvector = segment.construct<MyVector> ("MyVector")/*object name*/ (begVal /*first ctor parameter*/, - endVal /*second ctor parameter*/, - alloc_inst /*third ctor parameter*/); + endVal /*second ctor parameter*/, + alloc_inst /*third ctor parameter*/); //Use vector as your want std::sort(myvector->rbegin(), myvector->rend()); |