
29 Jul
2005
29 Jul
'05
12:45 p.m.
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