Structures and vectors in Boost Shared Memory
问题 I am new to Boost. I have the following structure and want to store it in shared memory using Boost. struct InData{ int x,y,h,w; char* lbl; }; In-turn this structure will be stored in Vector. Most of example talk about int or string datatype for Vectors. I would like if anbody can provide an example how to store user defined data type into boost shared memory. 回答1: You can easily store UDT in there, Boost's interprocess allocator will do the magic for you. However, storing raw-pointers is not