Boost logo

Boost :

Subject: [boost] [interprocess] [container] Can iterator hold raw-pointer instead of offset_ptr?
From: TONGARI (tongari95_at_[hidden])
Date: 2013-04-28 03:06:21


Hi there,

When putting containers in shared memory, offset_ptr is used internally,
and IIUC, the iterator of the container will also use offset_ptr. But it
seems to me that in most cases we only use iterator locally rather than
putting those iterators in shared memory as well, so the
plain-old-raw-pointer is sufficient and hopefully more efficient for
iterator's usage.

What do you think?


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