Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Function anonymous_shared_memory

boost::interprocess::anonymous_shared_memory

Synopsis

// In header: <boost/interprocess/anonymous_shared_memory.hpp>


mapped_region anonymous_shared_memory(std::size_t size, void * address = 0);

Description

A function that creates an anonymous shared memory segment of size "size". If "address" is passed the function will try to map the segment in that address. Otherwise the operating system will choose the mapping address. The function returns a mapped_region holding that segment or throws interprocess_exception if the function fails.


PrevUpHomeNext