This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++17 status.

### 2812. Range access is available with `<string_view>`

Section: 23.7 [iterator.range], 21.4.2 [string.view.synop] Status: C++17 Submitter: Johel Ernesto Guerrero Peña Opened: 2016-10-29 Last modified: 2017-07-30

Priority: 0

View other active issues in [iterator.range].

View all other issues in [iterator.range].

View all issues with C++17 status.

Discussion:

21.4.2 [string.view.synop]/1 states

> The function templates defined in 20.2.2 and 24.7 are available when `<string_view>` is included.

23.7 [iterator.range], in p1 is missing `<string_view>`.

[Issues Telecon 16-Dec-2016]

Move to Tentatively Ready

Proposed resolution:

This wording is relative to N4606.

1. Edit 23.7 [iterator.range] p1 as indicated:

   > -1- In addition to being available via inclusion of the `<iterator>` header, the function templates in 24.7 are available when any of the following headers are included: `<array>`, `<deque>`, `<forward_list>`, `<list>`, `<map>`, `<regex>`, `<set>`, `<string>`, `<string_view>`, `<unordered_map>`, `<unordered_set>`, and `<vector>`.