Opened 6 years ago

Last modified 4 years ago

#5511 new Feature Requests

Documentation needs some improvement

Reported by: ramey Owned by: no-maintainer
Milestone: To Be Determined Component: circular_buffer
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc:


Basically the whole library is quite good. But I have a couple of minor complaints.

a) The documentation contains sentences like:

"iterator begin();

Get the iterator pointing to the beginning of the circular_buffer. 

I think the refers to the current front of the queue - where ever that falls in the underlying storage. This I could use this iterator to iterate from the oldest item to the most recent item. Naturally the value returned by this function call would change as items are popped of the queue. But it could also refer to the begin (and end) of underlying storage. I don't think it does this - but it's not clear from the documentation.

b) I would also like to have a constructor which allows me to pass any pair of random access iterators (ie. a range) and have the circular buffer use that rather than allocating it's own storage. This would make the package more useful to me and i would hope others as well.

Robert Ramey

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jano_gaspar

  • Owner changed from jano_gaspar to no-maintainer

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain no-maintainer.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.