Skip to content

Commit d5f7738

Browse files
jensmaurertkoeppe
authored andcommitted
[iterator.synopsis,ranges.syn] Add 'freestanding' markers per P1642R11
1 parent 3253518 commit d5f7738

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

source/iterators.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -336,37 +336,37 @@
336336

337337
// \ref{const.iterators}, constant iterators and sentinels
338338
template<@\libconcept{indirectly_readable}@ I>
339-
using iter_const_reference_t = @\seebelow@;
339+
using iter_const_reference_t = @\seebelow@; // freestanding
340340
template<class Iterator>
341341
concept @\exposconcept{constant-iterator}@ = @\seebelow@; // \expos
342342

343343
template<class Iterator>
344-
class basic_const_iterator;
344+
class basic_const_iterator; // freestanding
345345

346346
template<class T, @\libconcept{common_with}@<T> U>
347-
struct common_type<basic_const_iterator<T>, U> {
347+
struct common_type<basic_const_iterator<T>, U> { // freestanding
348348
using type = basic_const_iterator<common_type_t<T, U>>;
349349
};
350350
template<class T, @\libconcept{common_with}@<T> U>
351-
struct common_type<U, basic_const_iterator<T>> {
351+
struct common_type<U, basic_const_iterator<T>> { // freestanding
352352
using type = basic_const_iterator<common_type_t<T, U>>;
353353
};
354354
template<class T, @\libconcept{common_with}@<T> U>
355-
struct common_type<basic_const_iterator<T>, basic_const_iterator<U>> {
355+
struct common_type<basic_const_iterator<T>, basic_const_iterator<U>> { // freestanding
356356
using type = basic_const_iterator<common_type_t<T, U>>;
357357
};
358358

359359
template<@\libconcept{input_iterator}@ I>
360-
using const_iterator = @\seebelow@;
360+
using const_iterator = @\seebelow@; // freestanding
361361

362362
template<class S>
363-
using const_sentinel = @\seebelow@;
363+
using const_sentinel = @\seebelow@; // freestanding
364364

365365
template<@\libconcept{input_iterator}@ I>
366-
constexpr const_iterator<I> make_const_iterator(I it) { return it; }
366+
constexpr const_iterator<I> make_const_iterator(I it) { return it; } // freestanding
367367

368368
template<class S>
369-
constexpr const_sentinel<S> make_const_sentinel(S s) { return s; }
369+
constexpr const_sentinel<S> make_const_sentinel(S s) { return s; } // freestanding
370370

371371
// \ref{move.iterators}, move iterators and sentinels
372372
template<class Iterator> class move_iterator; // freestanding

source/ranges.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
template<@\libconcept{range}@ R>
6565
using sentinel_t = decltype(ranges::end(declval<R&>())); // freestanding
6666
template<@\libconcept{range}@ R>
67-
using const_iterator_t = const_iterator<iterator_t<R>>;
67+
using const_iterator_t = const_iterator<iterator_t<R>>; // freestanding
6868
template<@\libconcept{range}@ R>
6969
using range_difference_t = iter_difference_t<iterator_t<R>>; // freestanding
7070
template<@\libconcept{sized_range}@ R>
@@ -74,7 +74,7 @@
7474
template<@\libconcept{range}@ R>
7575
using range_reference_t = iter_reference_t<iterator_t<R>>; // freestanding
7676
template<@\libconcept{range}@ R>
77-
using range_const_reference_t = iter_const_reference_t<iterator_t<R>>;
77+
using range_const_reference_t = iter_const_reference_t<iterator_t<R>>; // freestanding
7878
template<@\libconcept{range}@ R>
7979
using range_rvalue_reference_t = iter_rvalue_reference_t<iterator_t<R>>; // freestanding
8080

@@ -120,7 +120,7 @@
120120
concept viewable_range = @\seebelow@; // freestanding
121121

122122
template<class T>
123-
concept constant_range = @\seebelow@;
123+
concept constant_range = @\seebelow@; // freestanding
124124

125125
// \ref{view.interface}, class template \tcode{view_interface}
126126
template<class D>
@@ -362,12 +362,13 @@
362362

363363
template<@\libconcept{view}@ V>
364364
requires @\libconcept{input_range}@<V>
365-
class as_const_view;
365+
class as_const_view; // freestanding
366366

367367
template<class T>
368-
inline constexpr bool enable_borrowed_range<as_const_view<T>> = enable_borrowed_range<T>;
368+
inline constexpr bool enable_borrowed_range<as_const_view<T>> = // freestanding
369+
enable_borrowed_range<T>;
369370

370-
namespace views { inline constexpr @\unspec@ as_const = @\unspec@; }
371+
namespace views { inline constexpr @\unspec@ as_const = @\unspec@; } // freestanding
371372

372373
// \ref{range.elements}, elements view
373374
template<@\libconcept{input_range}@ V, size_t N>

0 commit comments

Comments
 (0)