Skip to content

Commit 235a25b

Browse files
committed
[ranges.syn] Move namespace-scope declarations for get(subrange) here
1 parent 96c854b commit 235a25b

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

source/ranges.tex

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,20 @@
130130
template<class I, class S, subrange_kind K>
131131
inline constexpr bool enable_borrowed_range<subrange<I, S, K>> = true;
132132

133+
template<size_t N, class I, class S, subrange_kind K>
134+
requires ((N == 0 && @\libconcept{copyable}@<I>) || N == 1)
135+
constexpr auto get(const subrange<I, S, K>& r);
136+
137+
template<size_t N, class I, class S, subrange_kind K>
138+
requires (N < 2)
139+
constexpr auto get(subrange<I, S, K>&& r);
140+
}
141+
142+
namespace std {
143+
using ranges::get;
144+
}
145+
146+
namespace std::ranges {
133147
// \ref{range.dangling}, dangling iterator handling
134148
struct dangling;
135149

@@ -1741,18 +1755,6 @@
17411755
template<@\libconcept{borrowed_range}@ R>
17421756
subrange(R&&, @\placeholdernc{make-unsigned-like-t}@<range_difference_t<R>>) ->
17431757
subrange<iterator_t<R>, sentinel_t<R>, subrange_kind::sized>;
1744-
1745-
template<size_t N, class I, class S, subrange_kind K>
1746-
requires ((N == 0 && @\libconcept{copyable}@<I>) || N == 1)
1747-
constexpr auto get(const subrange<I, S, K>& r);
1748-
1749-
template<size_t N, class I, class S, subrange_kind K>
1750-
requires (N < 2)
1751-
constexpr auto get(subrange<I, S, K>&& r);
1752-
}
1753-
1754-
namespace std {
1755-
using ranges::get;
17561758
}
17571759
\end{codeblock}
17581760

0 commit comments

Comments
 (0)