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: 22.7 [iterator.range], 20.4.1 [string.view.synop] Status: C++17 Submitter: Johel Ernesto Guerrero Peña Opened: 2016-10-29 Last modified: 2017-08-01

Priority: 0

View all other issues in [iterator.range].

View all issues with C++17 status.


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

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