2812. Range access is available with <string_view>

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

Priority: 0

View all other issues in [iterator.range].

View all issues with C++17 status.

Discussion:

24.4.1 [string.view.synop]/1 states

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

27.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 27.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>.