Boost logo

Glas :

Re: [glas] using (boost)range or STL style interface [was: dense and sparse vectors]

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2005-08-05 08:13:49


On Thursday 04 August 2005 4:03 pm, Toon Knapen wrote:
> David Abrahams wrote:
[...]
> >
> > some_algorithm(transpose_view(m))
> >
> > as opposed to:
> >
> > some_algorithm(transpose_view(m).begin(), transpose_view(m).end())
>

The issue I run into is where transpose_view(m) is a function that can't be or
shouldn't be called twice - it might, for example, modify it's argument, or
it might be expensive.