Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CircularBuffer(): get available transactions #5058
Please align the code style.
size() ? From boost circular buffer:
size_type size() const - Get the number of elements currently stored in the circular_buffer.
How is it supposed to improve efficiency ?
The buffer store elements not transactions and it would be better better to stick with the familiar C++ idiom
The example is about knowing the size of the buffer, so a following routine will not be triggered until the buffer contains a certain amount of expected data. The current implementation does not allow any knowledge about the stored amount of data in the buffer.
I updated the code style. Hopefully it complies now, if not let me know whats wrong.
Build number : 436