Skip to content

Commit 3ff4794

Browse files
authored
[iterator.synopsis] Fix indexing targets for singular sentinels. (#4030)
1 parent c76c6e9 commit 3ff4794

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/iterators.tex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
\rSec1[iterator.synopsis]{Header \tcode{<iterator>}\ synopsis}
3131

3232
\indexheader{iterator}%
33-
\indexlibraryglobal{default_sentinel}%
34-
\indexlibraryglobal{unreachable_sentinel}%
3533
\begin{codeblock}
3634
#include <compare> // see \ref{compare.syn}
3735
#include <concepts> // see \ref{concepts.syn}
@@ -381,7 +379,7 @@
381379

382380
// \ref{default.sentinels}, default sentinels
383381
struct default_sentinel_t;
384-
inline constexpr default_sentinel_t default_sentinel{};
382+
inline constexpr default_sentinel_t @\libglobal{default_sentinel}@{};
385383

386384
// \ref{iterators.counted}, counted iterators
387385
template<@\libconcept{input_or_output_iterator}@ I> class counted_iterator;
@@ -394,7 +392,7 @@
394392

395393
// \ref{unreachable.sentinels}, unreachable sentinels
396394
struct unreachable_sentinel_t;
397-
inline constexpr unreachable_sentinel_t unreachable_sentinel{};
395+
inline constexpr unreachable_sentinel_t @\libglobal{unreachable_sentinel}@{};
398396

399397
// \ref{stream.iterators}, stream iterators
400398
template<class T, class charT = char, class traits = char_traits<charT>,

0 commit comments

Comments
 (0)