|
| 1 | +<?xml version='1.0' encoding='utf-8' standalone='no'?> |
| 2 | +<!DOCTYPE issue SYSTEM "lwg-issue.dtd"> |
| 3 | + |
| 4 | +<issue num="4387" status="New"> |
| 5 | +<title>Including <tt><stacktrace></tt> doesn't provide `std::begin/end` |
| 6 | +</title> |
| 7 | +<section> |
| 8 | +<sref ref="[iterator.range]"/> |
| 9 | +</section> |
| 10 | +<submitter>Hewill Kang</submitter> |
| 11 | +<date>27 Sep 2025</date> |
| 12 | +<priority>99</priority> |
| 13 | + |
| 14 | +<discussion> |
| 15 | +<p> |
| 16 | +`basic_stacktrace` is explicitly specified as a reversible container, an allocator-aware container, |
| 17 | +and a const-qualified sequence container, with members `begin`/`end`, `rbegin`/`rend`, |
| 18 | +`cbegin`/`cend`, `crbegin`/`crend`, `empty`, `size`, etc. |
| 19 | +<p/> |
| 20 | +Thus, it's worth making the corresponding free functions available when introducing |
| 21 | +<code><stacktrace></code>, just like other containers. |
| 22 | +</p> |
| 23 | +</discussion> |
| 24 | + |
| 25 | +<resolution> |
| 26 | +<p> |
| 27 | +This wording is relative to <paper num="N5014"/>. |
| 28 | +</p> |
| 29 | + |
| 30 | +<ol> |
| 31 | + |
| 32 | +<li><p>Modify <sref ref="[iterator.range]"/> as indicated:</p> |
| 33 | + |
| 34 | +<blockquote> |
| 35 | +<p> |
| 36 | +-1- In addition to being available via inclusion of the <tt><iterator></tt> header, the function |
| 37 | +templates in <sref ref="[iterator.range]"/> are available when any of the following headers are included: |
| 38 | +<tt><array></tt>, |
| 39 | +<tt><deque></tt>, <tt><flat_map></tt>, <tt><flat_set></tt>, |
| 40 | +<tt><forward_list></tt>, |
| 41 | +<tt><hive></tt>, |
| 42 | +<tt><inplace_vector></tt>, <tt><list></tt>, <tt><map></tt>, |
| 43 | +<tt><regex></tt>, <tt><set></tt>, |
| 44 | +<tt><span></tt>, <ins><tt><stacktrace></tt></ins>, |
| 45 | +<tt><string></tt>, <tt><string_view></tt>, |
| 46 | +<tt><unordered_map></tt>, <tt><unordered_set></tt>, and <tt><vector></tt>. |
| 47 | + |
| 48 | +</p> |
| 49 | +</blockquote> |
| 50 | + |
| 51 | +</li> |
| 52 | + |
| 53 | +</ol> |
| 54 | +</resolution> |
| 55 | + |
| 56 | +</issue> |
0 commit comments