On 02/05/2011 04:27 PM, Andrei Alexandrescu wrote:
On 2/5/11 6:57 AM, spir wrote:
Exactly. I would love something like:
auto bufInputRange (R) (R inputRange, size_t capacity=0) if (...)
Meaning one can specify (max) buffering capacity; else there is a
standard (re)sizing scheme. Just like dyn array (re)sizing.
Side-question to specialists: What should actual buf capacity depend on?
Denis
My design would allow you to build a buffered input range from an input range,
but only with infinite capacity.
Andrei
All right, point taken.
Denis
--
_________________
vita es estrany
spir.wikidot.com