Boost logo

Boost :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2007-03-06 09:33:12


On 3/5/07, Shibu Bera <shibu.ncst_at_[hidden]> wrote:
> Please let me know, if there is any function in boost::interprocess,
> which can be used for cleanning up(filling up with particular value) the
> shared memory created. Like
> memset function in std::cstring.

This example shows memset being used:

http://ice.prohosting.com/newfunk/boost/libs/interprocess/doc/html/interprocess/sharedmemory.html#interprocess.sharedmemory.shared_memory_a_simple_example
http://tinyurl.com/ytdb7b

Presumably std::fill or std::fill_n would work just as well.

-- 
Caleb Epstein

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk