Thread overview
safearray's
Apr 12, 2004
Pablo Aguilar
Apr 12, 2004
Pablo Aguilar
Apr 13, 2004
Matthew
Apr 13, 2004
Pablo Aguilar
Apr 17, 2004
Matthew
Apr 19, 2004
Pablo Aguilar
Apr 20, 2004
Matthew
Apr 25, 2004
Matthew
Apr 27, 2004
Javier Estrada
April 12, 2004
have you thought about doing sequences over SAFEARRAY's?


April 12, 2004
maybe not complete SAFEARRAY's but single dimension ones

> have you thought about doing sequences over SAFEARRAY's?


April 13, 2004
Many times. Just not got round to it.

I'll bump it up on the list. ;)

"Pablo Aguilar" <paguilarg@hotmail.com> wrote in message news:c5f5m8$1813$1@digitaldaemon.com...
> have you thought about doing sequences over SAFEARRAY's?
>
>


April 13, 2004
"Matthew" <matthew@stlsoft.org> wrote in message news:c5g4k2$2ou5$1@digitaldaemon.com...
> Many times. Just not got round to it.
>
> I'll bump it up on the list. ;)

Glad to know... I cooked up something quick to work in the meantime...

I'm finally getting into REALLY using stlsoft, and I'll be letting you know
all comments I come up with..
To start, I've got a question about why you chose to do functionals (like
listbox_add_inserter) as, well, functions, to use with for_each and not
iterators (in the spirit of back_inserter and alike) to use with copy or
transform? or can you use 'em like that anyway and I couldn't figure out
how? I figure you thought about both ways, so I'm curious as to why the
choice...


April 17, 2004
Here's a very rough first draft. It presents all elements from N dimensions in a single iterable (forward or backwards) sequence. It does not own the SAFEARRAY.

"Pablo Aguilar" <paguilarg@hotmail.com> wrote in message news:c5hoe6$243r$1@digitaldaemon.com...
> "Matthew" <matthew@stlsoft.org> wrote in message news:c5g4k2$2ou5$1@digitaldaemon.com...
> > Many times. Just not got round to it.
> >
> > I'll bump it up on the list. ;)
>
> Glad to know... I cooked up something quick to work in the meantime...
>
> I'm finally getting into REALLY using stlsoft, and I'll be letting you
know
> all comments I come up with..
> To start, I've got a question about why you chose to do functionals (like
> listbox_add_inserter) as, well, functions, to use with for_each and not
> iterators (in the spirit of back_inserter and alike) to use with copy or
> transform? or can you use 'em like that anyway and I couldn't figure out
> how? I figure you thought about both ways, so I'm curious as to why the
> choice...
>
>



April 19, 2004
Seems to be working fine...

It treats the elements in all dimensions as a single sequence, right? works fine for me right now, I've got single dimension arrays only...

Great work, thanks...

> Here's a very rough first draft. It presents all elements from N
dimensions
> in a single iterable (forward or backwards) sequence. It does not own the
> SAFEARRAY.


April 20, 2004
Pleasure.

Naturally I'll look to expand it in several ways in the future, but I think it's a good STL-isation of safe-arrays for the moment. Glad that you agree .... ;)

"Pablo Aguilar" <paguilarg@hotmail.com> wrote in message news:c617n2$19ba$1@digitaldaemon.com...
> Seems to be working fine...
>
> It treats the elements in all dimensions as a single sequence, right?
works
> fine for me right now, I've got single dimension arrays only...
>
> Great work, thanks...
>
> > Here's a very rough first draft. It presents all elements from N
> dimensions
> > in a single iterable (forward or backwards) sequence. It does not own
the
> > SAFEARRAY.
>
>


April 25, 2004
"Pablo Aguilar" <paguilarg@hotmail.com> wrote in message news:c5hoe6$243r$1@digitaldaemon.com...
> "Matthew" <matthew@stlsoft.org> wrote in message news:c5g4k2$2ou5$1@digitaldaemon.com...
> > Many times. Just not got round to it.
> >
> > I'll bump it up on the list. ;)
>
> Glad to know... I cooked up something quick to work in the meantime...
>
> I'm finally getting into REALLY using stlsoft, and I'll be letting you know
> all comments I come up with..
> To start, I've got a question about why you chose to do functionals (like
> listbox_add_inserter) as, well, functions, to use with for_each and not
> iterators (in the spirit of back_inserter and alike) to use with copy or
> transform? or can you use 'em like that anyway and I couldn't figure out
> how? I figure you thought about both ways, so I'm curious as to why the
> choice...

Habit and truculence, probably. I am aware that I do bias towards for_each() a
lot.

It would be *very* helpful if you could identify a few cases where you think it's inappropriate, and suggest an alternative (presumably based on std::copy or std::transform). That could help me a lot.

Cheers

Matthew


April 27, 2004
Maybe you'd want to check Andrei Alexandrecu's automation_vector.  It is a very complete wrapper over SAFEARRAY with an STL interface.

Try:
http://www.moderncppdesign.com

Then go to Publications.  The article was published on CUJ in April 1999.

There's a minor bump if you compile the source code with VC7 or VC7.1 compilers, but nothing major.

Regards,

Javier Estrada

mailto:developeer.com@ljestrada