mirror of
https://github.com/Ferdi265/cxx-ring-buffer.git
synced 2025-08-05 18:44:29 +02:00
clarify requirement for random access iterators for the underlying container
This commit is contained in:
@@ -66,8 +66,11 @@ the underlying container)
|
|||||||
#### Template parameter requirements
|
#### Template parameter requirements
|
||||||
|
|
||||||
The parameter `Container` needs to have member types `value_type` and
|
The parameter `Container` needs to have member types `value_type` and
|
||||||
`size_type`. and methods `size()`, `begin()`, `end()`, `cbegin()`, and
|
`size_type`, and methods `size_type size() const`, `iterator begin()`,
|
||||||
`cend()`, as well as an overloaded `operator[](size_type)`.
|
`iterator end()`, `const_iterator cbegin() const`, and `const_iterator cend()
|
||||||
|
const`, as well as an overloaded `value_type& operator[](size_type)`.
|
||||||
|
|
||||||
|
The iterators returned by the container need to be random access iterators.
|
||||||
|
|
||||||
#### Member Types
|
#### Member Types
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user