Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-07-29 07:45:17


Ulrich Eckhardt <uli <at> doommachine.dyndns.org> writes:

>
> On Tuesday 26 July 2005 22:45, Rebooted wrote:
> > In my program I need to store a map of signals, with an integer id
> > corresponding to a signal in the map.
>
> Some kind of map<id_type, signal_type>.

> Store a smart pointer instead of the signal itself. This would even speed up
> operations on the map.

Or do

boost::ptr_map<id_type,signal_type> map;

-Thorsten


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