-Original Message-
From: Jan Gaspar [mailto:[EMAIL PROTECTED]
Ok, it would be possible.
Pavel Vozenilek wrote:
Would it be possible to add helper function 'flatten()' into
circular_buffer?
After invocation, user would be sure of:
buff[0] buff[1] ... buff[n]
[snip]
I think, I changed mind. The flatten() method can be substituted by something like
this:
void doSomething(const int* pInt, size_t numInts); // C API
circular_bufferint intBuffer(10);
... //
fill the buffer somehow
vectorint
Would it be possible to add helper function 'flatten()' into
circular_buffer?
After invocation, user would be sure of:
buff[0] buff[1] ... buff[n]
In other words, user will be able to treat circular_buffer content as
continuous array of values in this moment.
It is not earth shaking
Ok, it would be possible.
Jan
Pavel Vozenilek wrote:
Would it be possible to add helper function 'flatten()' into
circular_buffer?
After invocation, user would be sure of:
buff[0] buff[1] ... buff[n]
In other words, user will be able to treat circular_buffer content as
continuous