From b564c507308037b8ad81d030f165f8806c69b6ea Mon Sep 17 00:00:00 2001 From: Ferdinand Bachmann Date: Wed, 22 Apr 2020 15:32:23 +0200 Subject: [PATCH] clarify requirement for random access iterators for the underlying container --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 70db6ec..fa7514c 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,11 @@ the underlying container) #### Template parameter requirements The parameter `Container` needs to have member types `value_type` and -`size_type`. and methods `size()`, `begin()`, `end()`, `cbegin()`, and -`cend()`, as well as an overloaded `operator[](size_type)`. +`size_type`, and methods `size_type size() const`, `iterator begin()`, +`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