|
111 | 111 |
|
112 | 112 | // \ref{iterator.concept.sizedsentinel}, concept \libconcept{sized_sentinel_for}
|
113 | 113 | template<class S, class I>
|
114 |
| - inline constexpr bool disable_sized_sentinel = false; |
| 114 | + inline constexpr bool disable_sized_sentinel_for = false; |
115 | 115 |
|
116 | 116 | template<class S, class I>
|
117 | 117 | concept sized_sentinel_for = @\seebelow@;
|
|
315 | 315 |
|
316 | 316 | template<class Iterator1, class Iterator2>
|
317 | 317 | requires (!sized_sentinel_for<Iterator1, Iterator2>)
|
318 |
| - inline constexpr bool disable_sized_sentinel<reverse_iterator<Iterator1>, |
319 |
| - reverse_iterator<Iterator2>> = true; |
| 318 | + inline constexpr bool disable_sized_sentinel_for<reverse_iterator<Iterator1>, |
| 319 | + reverse_iterator<Iterator2>> = true; |
320 | 320 |
|
321 | 321 | // \ref{insert.iterators}, insert iterators
|
322 | 322 | template<class Container> class back_insert_iterator;
|
|
1554 | 1554 | template<class S, class I>
|
1555 | 1555 | concept @\deflibconcept{sized_sentinel_for}@ =
|
1556 | 1556 | sentinel_for<S, I> &&
|
1557 |
| - !disable_sized_sentinel<remove_cv_t<S>, remove_cv_t<I>> && |
| 1557 | + !disable_sized_sentinel_for<remove_cv_t<S>, remove_cv_t<I>> && |
1558 | 1558 | requires(const I& i, const S& s) {
|
1559 | 1559 | { s - i } -> same_as<iter_difference_t<I>>;
|
1560 | 1560 | { i - s } -> same_as<iter_difference_t<I>>;
|
|
1577 | 1577 | \end{itemize}
|
1578 | 1578 | \end{itemdescr}
|
1579 | 1579 |
|
1580 |
| -\indexlibraryglobal{disable_sized_sentinel}% |
| 1580 | +\indexlibraryglobal{disable_sized_sentinel_for}% |
1581 | 1581 | \begin{itemdecl}
|
1582 | 1582 | template<class S, class I>
|
1583 |
| - inline constexpr bool disable_sized_sentinel = false; |
| 1583 | + inline constexpr bool disable_sized_sentinel_for = false; |
1584 | 1584 | \end{itemdecl}
|
1585 | 1585 |
|
1586 | 1586 | \begin{itemdescr}
|
1587 | 1587 | \pnum
|
1588 | 1588 | \remarks
|
1589 | 1589 | Pursuant to \ref{namespace.std},
|
1590 |
| -users may specialize \tcode{disable_sized_sentinel} |
| 1590 | +users may specialize \tcode{disable_sized_sentinel_for} |
1591 | 1591 | for cv-unqualified non-array object types \tcode{S} and \tcode{I}
|
1592 | 1592 | if \tcode{S} and/or \tcode{I} is a program-defined type.
|
1593 | 1593 | Such specializations shall
|
|
1596 | 1596 |
|
1597 | 1597 | \pnum
|
1598 | 1598 | \begin{note}
|
1599 |
| -\tcode{disable_sized_sentinel} allows use of sentinels and iterators with |
| 1599 | +\tcode{disable_sized_sentinel_for} allows use of sentinels and iterators with |
1600 | 1600 | the library that satisfy but do not in fact model \libconcept{sized_sentinel_for}.
|
1601 | 1601 | \end{note}
|
1602 | 1602 |
|
|
0 commit comments