1 | #include <boost/interprocess/managed_shared_memory.hpp>
|
---|
2 |
|
---|
3 | typedef boost::interprocess::managed_shared_memory segment_t;
|
---|
4 |
|
---|
5 | int main()
|
---|
6 | {
|
---|
7 | segment_t segment(boost::interprocess::open_or_create,"some_segment_name",1048576);
|
---|
8 | segment.find<int>("some_variable_name");
|
---|
9 | }
|
---|