Boost logo

Boost :

Subject: Re: [boost] AlRangeExandrescu?
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-07-28 19:45:16


Mathias Gaunard <mathias.gaunard <at> ens-lyon.org> writes:

> > for what it worth I came to exactly the same conclusion while
> > ago and introduced
> > basic_cstring template (in Boost.Test code and in all my day
> > life projects), which is is tiny abstract that wraps two
> > pointers or pointer and size to model any buffers in C like
> > interfaces.
>
> Why not use iterator_range, which even works for any iterator?
> Arguably, it doesn't support pointer + size, only pointer + pointer.

basic_cstring predates iterator range by several years. It also have
semantic of actual string, unlike iterator_range.

Gennadiy


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