[C++-sig] Re: Pointers to simple types, arrays and arrays of pointers to types

Raoul Gough RaoulGough at yahoo.co.uk
Mon Oct 6 18:13:37 CEST 2003

"Niall Douglas" <s_sourceforge at nedprod.com> writes:

> Basically FXImage is an image - whereby you can alter it by drawing 
> on it, or modifiying its bitmap directly. If you were to make copies 
> into a list, it would be sure slow.
> I think the best solution might be for it to return a wrapper class 
> which provides operator[]. This may in fact solve all my problems.

The new indexing suite provides support for this kind of thing. It has
a template called iterator_pair which would allow you to expose
iterator_pair<FXImage *> as a container type - with full indexing,
slicing, searching, etc..., but without insert or erase for obvious
reasons. I should be checking this in on a new CVS branch later today,
if your interested. Documentation is already online at


I've just realized that iterator_pair is not yet documented. Will get
this updated, too.

Raoul Gough.
(setq dabbrev-case-fold-search nil)

More information about the Cplusplus-sig mailing list