Opened 11 years ago

Last modified 9 years ago

#5511 new Feature Requests

Documentation needs some improvement

Reported by: Robert Ramey Owned by: No-Maintainer
Milestone: To Be Determined Component: circular_buffer
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc:

Description

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

Change History (1)

comment:1 by Jan Gaspar, 9 years ago

Owner: changed from Jan Gaspar to No-Maintainer
Note: See TracTickets for help on using tickets.