Skip to content

Commit caf7428

Browse files
jensmaurertkoeppe
authored andcommitted
[ranges] Rename 'not-same-as' to 'different-from'.
'not-same-as' is not quite equivalent to 'not same_as'.
1 parent fb6acaa commit caf7428

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/ranges.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@
13431343
@\libconcept{input_iterator}@<I> && (is_pointer_v<I> || requires(I i) { i.operator->(); });
13441344

13451345
template<class T, class U>
1346-
concept @\defexposconcept{not-same-as}@ = // \expos
1346+
concept @\defexposconcept{different-from}@ // \expos
13471347
!@\libconcept{same_as}@<remove_cvref_t<T>, remove_cvref_t<U>>;
13481348
\end{codeblock}
13491349

@@ -1483,7 +1483,7 @@
14831483
@\libconcept{convertible_to}@<From, To> &&
14841484
!(is_pointer_v<decay_t<From>> &&
14851485
is_pointer_v<decay_t<To>> &&
1486-
@\exposconcept{not-same-as}@<remove_pointer_t<decay_t<From>>, remove_pointer_t<decay_t<To>>>);
1486+
@\exposconcept{different-from}@<remove_pointer_t<decay_t<From>>, remove_pointer_t<decay_t<To>>>);
14871487

14881488
template<class T>
14891489
concept @\defexposconcept{pair-like}@ = // \expos
@@ -1523,7 +1523,7 @@
15231523
@\placeholdernc{make-unsigned-like-t}@<iter_difference_t<I>> n)
15241524
requires (K == subrange_kind::sized);
15251525

1526-
template<@\exposconcept{not-same-as}@<subrange> R>
1526+
template<@\exposconcept{different-from}@<subrange> R>
15271527
requires @\libconcept{borrowed_range}@<R> &&
15281528
@\exposconcept{convertible-to-non-slicing}@<iterator_t<R>, I> &&
15291529
@\libconcept{convertible_to}@<sentinel_t<R>, S>
@@ -1537,7 +1537,7 @@
15371537
: subrange{ranges::begin(r), ranges::end(r), n}
15381538
{}
15391539

1540-
template<@\exposconcept{not-same-as}@<subrange> PairLike>
1540+
template<@\exposconcept{different-from}@<subrange> PairLike>
15411541
requires @\exposconcept{pair-like-convertible-from}@<PairLike, const I&, const S&>
15421542
constexpr operator PairLike() const;
15431543

@@ -1637,7 +1637,7 @@
16371637

16381638
\indexlibraryctor{subrange}%
16391639
\begin{itemdecl}
1640-
template<@\exposconcept{not-same-as}@<subrange> R>
1640+
template<@\exposconcept{different-from}@<subrange> R>
16411641
requires @\libconcept{borrowed_range}@<R> &&
16421642
@\exposconcept{convertible-to-non-slicing}@<iterator_t<R>, I> &&
16431643
@\libconcept{convertible_to}@<sentinel_t<R>, S>
@@ -1657,7 +1657,7 @@
16571657

16581658
\indexlibrarymember{operator \placeholder{PairLike}}{subrange}%
16591659
\begin{itemdecl}
1660-
template<@\exposconcept{not-same-as}@<subrange> PairLike>
1660+
template<@\exposconcept{different-from}@<subrange> PairLike>
16611661
requires @\exposconcept{pair-like-convertible-from}@<PairLike, const I&, const S&>
16621662
constexpr operator PairLike() const;
16631663
\end{itemdecl}
@@ -3116,7 +3116,7 @@
31163116
public:
31173117
constexpr ref_view() noexcept = default;
31183118

3119-
template<@\exposconcept{not-same-as}@<ref_view> T>
3119+
template<@\exposconcept{different-from}@<ref_view> T>
31203120
requires @\seebelow@
31213121
constexpr ref_view(T&& t);
31223122

@@ -3142,7 +3142,7 @@
31423142

31433143
\indexlibraryglobal{ref_view}%
31443144
\begin{itemdecl}
3145-
template<@\exposconcept{not-same-as}@<ref_view> T>
3145+
template<@\exposconcept{different-from}@<ref_view> T>
31463146
requires @\seebelow@
31473147
constexpr ref_view(T&& t);
31483148
\end{itemdecl}

0 commit comments

Comments
 (0)