Boost logo

Boost :

From: jhrwalter (walter_at_[hidden])
Date: 2002-01-17 09:54:34


--- In boost_at_y..., Toon Knapen <toon.knapen_at_s...> wrote:
> vesa_karvonen wrote:
>
> > So, consider using something like size(dimension) instead.
> >
>
>
> But for in case you know the dimensin at compile-time, I would also
like
> to have following (for performance reasons)
>
> template < int N >
> size_type size() const;

I once experimented with something like this. But an easy
implementation seemed to require partial template specialization
(especially for matrix row and column iterators) and I was tired of
workarounds for the most popular compiler ;-)

Regards

Joerg


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